[03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]accept exits with 8 [03:49:17]New connection [03:49:17]New thread 3066768740 created [03:49:17]Thread 3066625380 joined [03:49:17]Waiting for new connection... [03:49:17] Sock 8.Parse request [03:49:17]Sock 8.Check first char [03:49:17]Sock 8.First char is OK [03:49:17]request: POST /json_proto HTTP/1.0 [03:49:17]Method: POST [03:49:17]URL: /json_proto [03:49:17]Method is POST - this is cgi request [03:49:17]url: /json_proto [03:49:17]query_string will be loaded in cgi processing [03:49:17]execute_cgi json_proto POST (null) [03:49:17]execute_cgi path=json_proto method=POST [03:49:17]POST find Content-Length [03:49:17]Host: 172.17.42.196:8080 [03:49:17]Content-Length: 831 [03:49:17]Content-Type: application/json [03:49:17] [03:49:17]POST finish read [03:49:17]Found Content-Length = 831 [03:49:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200122", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:17]execute_script... [03:49:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200122", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:49:17]POST & json_proto [03:49:17]process_json_proto [03:49:17]json parsed OK: [03:49:17]protocol is kg_v1.0 [03:49:17]action value=close_receipt [03:49:17]process_action close_receipt [03:49:17]cmd_close_receipt [03:49:17]MH_GetDate [03:49:17]Write to MH i2c: F0 00 00 86 2A 9F [03:49:17]Write i2c OK [03:49:17]MH_I2C_Read... [03:49:17]Read from MH i2c: F0 [03:49:17]MH_I2C_Read... [03:49:17]Read from MH i2c: F0 09 00 [03:49:17]MH_I2C_Read... [03:49:17]Read from MH i2c: F0 09 00 86 2A 00 42 B8 1D 67 FF C4 6B 64 B8 [03:49:17]GetLastDocTimeStamp 1729999127 [03:49:17]current date 1730000962 [03:49:17]FM_GetShiftState [03:49:17]SAM_PROTO_GetShiftState [03:49:17]wFMCommunicate request_size=4 [03:49:17]MH_SAM_APDU [03:49:17]CAPDU: 80 13 01 00 [03:49:17]Write to MH i2c: E2 08 00 87 2A 80 13 01 00 00 00 00 00 2E [03:49:17]Write i2c OK [03:49:17]MH_I2C_Read... [03:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:17]Read from MH i2c: E2 [03:49:17]MH_I2C_Read... [03:49:17]Read from MH i2c: E2 0E 00 [03:49:17]MH_I2C_Read... [03:49:17]Read from MH i2c: E2 0E 00 87 2A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CA [03:49:17]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [03:49:17]wFMCommunicate OK [03:49:17]SAM_PROTO_GetShiftState done [03:49:17]FM_GetShiftState done [03:49:17]opened in 1729989505 [03:49:17]opened+sec_in_day 1730075905 [03:49:17]quantity*price = 9500 [03:49:17]sum+1 = 9501 [03:49:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 10 27.10.2024 03:49 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874674 ФД: 60478 ФПД: 217048635539296 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T034922&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60478&fm=217048635539296&tin=02508201610067®Number=0000000000091622&sum=9500 0 [03:49:18]StoreToDocumentArchive [03:49:18]shift 532 fd 60478 [03:49:18]save to /storage/0532/doc_00060478 [03:49:18]save last doc name /storage/0532/doc_00060478 to /storage/kkm_last_doc_name [03:49:18]save OK [03:49:18]Clear old archive folders... [03:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [03:49:18]tlvbuf is 0059F7B0 [03:49:18]SAM_PROTO_ClearQueue [03:49:18]wFMCommunicate request_size=4 [03:49:18]MH_SAM_APDU [03:49:18]CAPDU: 80 09 00 00 [03:49:18]Write to MH i2c: E2 08 00 94 2A 80 09 00 00 00 00 00 00 30 [03:49:18]Write i2c OK [03:49:18]MH_I2C_Read... [03:49:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:49:18]Read from MH i2c: E2 [03:49:18]MH_I2C_Read... [03:49:18]Read from MH i2c: E2 03 00 [03:49:18]MH_I2C_Read... [03:49:18]Read from MH i2c: E2 03 00 94 2A 00 90 00 32 [03:49:18]RAPDU: 90 00 [03:49:18]wFMCommunicate OK [03:49:18]SAM_PROTO_ClearQueue done [03:49:18]KKMCreateOFDPacket [03:49:18]OFDProtocolAddRootSTLVToBuf [03:49:18]FM_MakeSignedData [03:49:18]FM_MakeSignedData [03:49:18]SAM_PROTO_SignData [03:49:18]wFMCommunicate request_size=4 [03:49:18]MH_SAM_APDU [03:49:18]CAPDU: 80 0D 01 02 [03:49:18]Write to MH i2c: E2 08 00 95 2A 80 0D 01 02 00 00 00 00 38 [03:49:18]Write i2c OK [03:49:18]MH_I2C_Read... [03:49:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:49:18]Read from MH i2c: E2 [03:49:18]MH_I2C_Read... [03:49:18]Read from MH i2c: E2 03 00 [03:49:18]MH_I2C_Read... [03:49:18]Read from MH i2c: E2 03 00 95 2A 00 90 00 33 [03:49:18]RAPDU: 90 00 [03:49:18]wFMCommunicate OK [03:49:18]wFMCommunicate request_size=255 [03:49:18]MH_SAM_APDU [03:49:18]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 42 B8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [03:49:18]Write to MH i2c: E2 02 01 96 2A 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 42 B8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 76 [03:49:18]Write i2c OK [03:49:18]MH_I2C_Read... [03:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:18]Read from MH i2c: E2 [03:49:18]MH_I2C_Read... [03:49:18]Read from MH i2c: E2 03 00 [03:49:18]MH_I2C_Read... [03:49:18]Read from MH i2c: E2 03 00 96 2A 00 90 00 34 [03:49:18]RAPDU: 90 00 [03:49:18]wFMCommunicate OK [03:49:18]wFMCommunicate request_size=52 [03:49:18]MH_SAM_APDU [03:49:18]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 3E EC 00 00 35 04 06 00 C5 67 92 D1 FF 60 [03:49:18]Write to MH i2c: E2 37 00 97 2A 80 0D 02 02 2F 00 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 3E EC 00 00 35 04 06 00 C5 67 92 D1 FF 60 00 00 15 [03:49:18]Write i2c OK [03:49:18]MH_I2C_Read... [03:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:49:19]Read from MH i2c: E2 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: E2 03 00 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: E2 03 00 97 2A 00 90 00 35 [03:49:19]RAPDU: 90 00 [03:49:19]wFMCommunicate OK [03:49:19]wFMCommunicate request_size=4 [03:49:19]MH_SAM_APDU [03:49:19]CAPDU: 80 0D 03 02 [03:49:19]Write to MH i2c: E2 08 00 98 2A 80 0D 03 02 00 00 00 00 3D [03:49:19]Write i2c OK [03:49:19]MH_I2C_Read... [03:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:49:19]Read from MH i2c: E2 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: E2 0B 00 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: E2 0B 00 98 2A 00 11 63 4E D3 FE 60 B8 8B 90 00 74 [03:49:19]RAPDU: 11 63 4E D3 FE 60 B8 8B 90 00 [03:49:19]wFMCommunicate OK [03:49:19]SAM_PROTO_SignData done [03:49:19]FM_MakeSignedData done [03:49:19]CreateOFDProtocolMessage [03:49:19]wFMCommunicate request_size=4 [03:49:19]MH_SAM_APDU [03:49:19]CAPDU: 80 11 00 00 [03:49:19]Write to MH i2c: E2 08 00 99 2A 80 11 00 00 00 00 00 00 3D [03:49:19]Write i2c OK [03:49:19]MH_I2C_Read... [03:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:19]Read from MH i2c: E2 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: E2 17 00 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: E2 17 00 99 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 94 [03:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [03:49:19]wFMCommunicate OK [03:49:19]CreateOFDProtocolMessage done [03:49:19]OFDSenderStorePacket 60478 [03:49:19]StoreOFDPacket docnum=60478 [03:49:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 39 01 00 00 00 52 31 01 9D F3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 42 B8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 3E EC 00 00 35 04 06 00 C5 67 92 D1 FF 60 11 63 4E D3 FE 60 B8 8B [03:49:19]CheckFolder [03:49:19]dirname=/storage/ofd_packets [03:49:19]CheckFolder done [03:49:19]ProducePacketName [03:49:19]name=ofd_packets/00060478 [03:49:19]NVStorageSaveData ofd_packets/00060478 [03:49:19]File name is /storage/ofd_packets/00060478 [03:49:19]Write 343 bytes [03:49:19]NVStorageSaveData done [03:49:19]OFDSenderStorePacket done [03:49:19]KKMCreateOFDPacket done [03:49:19]NVStorageSaveData kkm_last_timestamp [03:49:19]File name is /storage/kkm_last_timestamp [03:49:19]Write 4 bytes [03:49:19]NVStorageSaveData done [03:49:19]ExternCall_PrintAddStr [03:49:19]wPrintStart [03:49:19]Write to MH i2c: 01 00 00 9A 2A C4 [03:49:19]Write i2c OK [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: 01 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: 01 07 00 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 FF 0F D9 [03:49:19]RasterBufferAndPrint [03:49:19]line Счет N : (3)200122 [03:49:19]line ИНН: 02508201610067 [03:49:19]line Контрольно-Кассовый Чек [03:49:19]line ПРОДАЖА [03:49:19]line Товар: 4700000480050 [03:49:19]line Напиток Nitro Energy эн green ж/б 0,45л [03:49:19]line 1.000 * 95.00 [03:49:19]line = 95.00 [03:49:19]line НДС 12% НСП 1% [03:49:19]line > о реализуемом товаре [03:49:19]line ИТОГО: 95.00 [03:49:19]line НСП 1% : 0.84 [03:49:19]line НДС 12% : 10.09 [03:49:19]line Наличными: 0.00 [03:49:19]line Безнал.: 95.00 [03:49:19]line Место: АЗС № 87 "Партнер Нефть" [03:49:19]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [03:49:19]line СНО: Общий режим [03:49:19]line Чек 10 27.10.2024 03:49 [03:49:19]line Смена: 532 ФФД: 1.0 [03:49:19]line ЗНМ: 0300000084 [03:49:19]line РНМ: 0000000000091622 [03:49:19]line Версия ККМ: 001 [03:49:19]line Платежная система: Бакай Банк [03:49:19]line ФМ: 0000000000874674 [03:49:19]line ФД: 60478 [03:49:19]line ФПД: 217048635539296 [03:49:19]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T034922&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60478&fm=217048635539296&tin=02508201610067®Number=0000000000091622&sum=9500 [03:49:19]line 0 [03:49:19]OFD Sender: Processing packet 60478 [packets to send 30, broken 29] [03:49:19]ProducePacketName [03:49:19]name=ofd_packets/00060478 [03:49:19]OFD Sender: To server: pG, [03:49:19]CommunicateWithHost lk.salyk.kg:30040 [03:49:19]ConnectInit lk.salyk.kg [03:49:19]written 0, free lines is 4095 [03:49:19]Connected sock=10 [03:49: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 36 37 34 39 01 00 00 00 52 31 01 9D F3 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 42 B8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 3E EC 00 00 35 04 06 00 C5 67 92 D1 FF 60 11 63 4E D3 FE 60 B8 8B [03:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 B3 A6 47 00 9B A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 3E EC 00 00 F4 03 04 00 2B 5E 1D 67 B6 04 01 00 00 C5 E4 A9 BB F6 52 61 DC [03:49:19]CommunicateWithHost err = 0 [03:49:19]CheckOFDResponse [03:49:19]1017 (14) - 77093643461234 [03:49:19]1041 (16) - 0000000000874674 [03:49:19]1040 (4) - 60478 [03:49:19]1012 (4) - 26.10.2024 21:24 [03:49:19]1206 (1) - 0 [03:49:19]OFD Sender: Remove packet 60478 [03:49:19]ProducePacketName [03:49:19]name=ofd_packets/00060478 [03:49:19]NVStorageDeleteData [03:49:19]Write to MH i2c: 01 00 00 C5 2A EF [03:49:19]Write i2c OK [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: 01 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: 01 07 00 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: 01 07 00 C5 2A 00 00 00 00 00 B8 0C BA [03:49:19]RasterBufferAndPrint [03:49:19]line [03:49:19]line [03:49:19]line [03:49:19]line [03:49:19]line [03:49:19]written 0, free lines is 3263 [03:49:19]MH_Cut [03:49:19]Write to MH i2c: D1 01 00 CC 2A 01 C8 [03:49:19]Write i2c OK [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: D1 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: D1 01 00 [03:49:19]MH_I2C_Read... [03:49:19]Read from MH i2c: D1 01 00 CC 2A 00 C7 [03:49:19]Write to MH i2c: 01 00 00 CD 2A F7 [03:49:19]Write i2c OK [03:49:19]MH_I2C_Read... [03:49:20]OFD Sender: No OFD packet to send [03:49:20]*** Cut start [03:49:20]*** Partial cut [03:49:20]*** CUTSNS_PIN = 1 [03:49:20]*** CUTSNS_PIN = 0 [03:49:21]*** Brake cut motor [03:49:21]Read from MH i2c: 01 [03:49:21]MH_I2C_Read... [03:49:21]*** Stop cut motor [03:49:21]*** Cut end [03:49:21]Read from MH i2c: 01 07 00 [03:49:21]MH_I2C_Read... [03:49:21]Read from MH i2c: 01 07 00 CD 2A 00 00 00 00 00 FF 0F 0C [03:49:21]process_action close_receipt done [03:49:21]requested_data is exist [03:49:21]produce_requested_data [03:49:21]requested_item fm.sn is exist - process it [03:49:21]wFMCommunicate request_size=4 [03:49:21]MH_SAM_APDU [03:49:21]CAPDU: 80 11 00 00 [03:49:21]Write to MH i2c: E2 08 00 CE 2A 80 11 00 00 00 00 00 00 72 [03:49:21]Write i2c OK [03:49:21]MH_I2C_Read... [03:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:49:21]Read from MH i2c: E2 [03:49:21]MH_I2C_Read... [03:49:21]Read from MH i2c: E2 17 00 [03:49:21]MH_I2C_Read... [03:49:21]Read from MH i2c: E2 17 00 CE 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C9 [03:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [03:49:21]wFMCommunicate OK [03:49:21]requested_item fd.num is exist - process it [03:49:21]SAM_PROTO_GetFieldsCounters [03:49:21]wFMCommunicate request_size=4 [03:49:21]MH_SAM_APDU [03:49:21]CAPDU: 80 13 00 00 [03:49:21]Write to MH i2c: E2 08 00 CF 2A 80 13 00 00 00 00 00 00 75 [03:49:21]Write i2c OK [03:49:21]MH_I2C_Read... [03:49:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:49:21]Read from MH i2c: E2 [03:49:21]MH_I2C_Read... [03:49:21]Read from MH i2c: E2 62 00 [03:49:21]MH_I2C_Read... [03:49:21]Read from MH i2c: E2 62 00 CF 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 3E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [03:49: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 3E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:49:21]wFMCommunicate OK [03:49:21]SAM_PROTO_GetFieldsCounters done [03:49:21]requested_item shift.num is exist - process it [03:49:21]requested_item shift.opened is exist - process it [03:49:21]req_shift_opened [03:49:21]FM_GetShiftState [03:49:21]SAM_PROTO_GetShiftState [03:49:21]wFMCommunicate request_size=4 [03:49:21]MH_SAM_APDU [03:49:21]CAPDU: 80 13 01 00 [03:49:21]Write to MH i2c: E2 08 00 D0 2A 80 13 01 00 00 00 00 00 77 [03:49:21]Write i2c OK [03:49:21]MH_I2C_Read... [03:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:49:21]Read from MH i2c: E2 [03:49:21]MH_I2C_Read... [03:49:21]Read from MH i2c: E2 0E 00 [03:49:21]MH_I2C_Read... [03:49:21]Read from MH i2c: E2 0E 00 D0 2A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 13 [03:49:21]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [03:49:21]wFMCommunicate OK [03:49:21]SAM_PROTO_GetShiftState done [03:49:21]FM_GetShiftState done [03:49:21]req_shift_opened done [03:49:21]requested_item shift.open_date is exist - process it [03:49:21]req_shift_open_date [03:49:21]req_shift_open_date done [03:49:21]produce_requested_data done [03:49:21]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60478,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [03:49:21]process_action_free close_receipt [03:49:21]json_value_free [03:49:21]json_value_free done [03:49:21]process_json_proto returns [03:49:21]Send response to host [03:49:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60478,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [03:49:21]free response buf [03:49:21]execute_script done [03:49:21]execute_script returns [03:49:21]free content buf [03:49:21]Sock 8.Close socket [03:49:21]Sock 8.Thread stoped [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:46]accept exits with 9 [04:04:46]New connection [04:04:46]New thread 3066625380 created [04:04:46]Thread 3066768740 joined [04:04:46]Waiting for new connection... [04:04:46] Sock 9.Parse request [04:04:46]Sock 9.Check first char [04:04:46]Sock 9.First char is OK [04:04:46]request: POST /json_proto HTTP/1.0 [04:04:46]Method: POST [04:04:46]URL: /json_proto [04:04:46]Method is POST - this is cgi request [04:04:46]url: /json_proto [04:04:46]query_string will be loaded in cgi processing [04:04:46]execute_cgi json_proto POST (null) [04:04:46]execute_cgi path=json_proto method=POST [04:04:46]POST find Content-Length [04:04:46]Host: 172.17.42.196:8080 [04:04:46]Content-Length: 1555 [04:04:46]Content-Type: application/json [04:04:46] [04:04:46]POST finish read [04:04:46]Found Content-Length = 1555 [04:04:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200123", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 2.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 482.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:04:46]execute_script... [04:04:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200123", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977952", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 55\u0433", "price" : 54.00, "quantity" : 2.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 482.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:04:46]POST & json_proto [04:04:46]process_json_proto [04:04:46]json parsed OK: [04:04:46]protocol is kg_v1.0 [04:04:46]action value=close_receipt [04:04:46]process_action close_receipt [04:04:46]cmd_close_receipt [04:04:46]MH_GetDate [04:04:46]Write to MH i2c: F0 00 00 D1 2A EA [04:04:46]Write i2c OK [04:04:46]MH_I2C_Read... [04:04:46]Read from MH i2c: F0 [04:04:46]MH_I2C_Read... [04:04:46]Read from MH i2c: F0 09 00 [04:04:47]MH_I2C_Read... [04:04:47]Read from MH i2c: F0 09 00 D1 2A 00 E3 BB 1D 67 FF C4 6B 64 A7 [04:04:47]GetLastDocTimeStamp 1730000962 [04:04:47]current date 1730001891 [04:04:47]FM_GetShiftState [04:04:47]SAM_PROTO_GetShiftState [04:04:47]wFMCommunicate request_size=4 [04:04:47]MH_SAM_APDU [04:04:47]CAPDU: 80 13 01 00 [04:04:47]Write to MH i2c: E2 08 00 D2 2A 80 13 01 00 00 00 00 00 79 [04:04:47]Write i2c OK [04:04:47]MH_I2C_Read... [04:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:04:47]Read from MH i2c: E2 [04:04:47]MH_I2C_Read... [04:04:47]Read from MH i2c: E2 0E 00 [04:04:47]MH_I2C_Read... [04:04:47]Read from MH i2c: E2 0E 00 D2 2A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 15 [04:04:47]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:04:47]wFMCommunicate OK [04:04:47]SAM_PROTO_GetShiftState done [04:04:47]FM_GetShiftState done [04:04:47]opened in 1729989505 [04:04:47]opened+sec_in_day 1730075905 [04:04:47]quantity*price = 12000 [04:04:47]sum+1 = 12001 [04:04:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 0.00 Безнал.: 69.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 12 27.10.2024 04:16 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60480 ФПД: 257706382961947 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T041604&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60480&fm=257706382961947&tin=02508201610067®Number=0000000000091622&sum=6900 0 [04:16:05]StoreToDocumentArchive [04:16:05]shift 532 fd 60480 [04:16:05]save to /storage/0532/doc_00060480 [04:16:05]save last doc name /storage/0532/doc_00060480 to /storage/kkm_last_doc_name [04:16:05]save OK [04:16:05]Clear old archive folders... [04:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=294 [04:16:05]tlvbuf is 002E8B40 [04:16:05]SAM_PROTO_ClearQueue [04:16:05]wFMCommunicate request_size=4 [04:16:05]MH_SAM_APDU [04:16:05]CAPDU: 80 09 00 00 [04:16:05]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [04:16:05]Write i2c OK [04:16:05]MH_I2C_Read... [04:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:16:05]Read from MH i2c: E2 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [04:16:05]RAPDU: 90 00 [04:16:05]wFMCommunicate OK [04:16:05]SAM_PROTO_ClearQueue done [04:16:05]KKMCreateOFDPacket [04:16:05]OFDProtocolAddRootSTLVToBuf [04:16:05]FM_MakeSignedData [04:16:05]FM_MakeSignedData [04:16:05]SAM_PROTO_SignData [04:16:05]wFMCommunicate request_size=4 [04:16:05]MH_SAM_APDU [04:16:05]CAPDU: 80 0D 01 02 [04:16:05]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [04:16:05]Write i2c OK [04:16:05]MH_I2C_Read... [04:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:16:05]Read from MH i2c: E2 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [04:16:05]RAPDU: 90 00 [04:16:05]wFMCommunicate OK [04:16:05]wFMCommunicate request_size=255 [04:16:05]MH_SAM_APDU [04:16:05]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 84 BE 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [04:16:05]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 84 BE 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 9C [04:16:05]Write i2c OK [04:16:05]MH_I2C_Read... [04:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:05]Read from MH i2c: E2 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [04:16:05]RAPDU: 90 00 [04:16:05]wFMCommunicate OK [04:16:05]wFMCommunicate request_size=53 [04:16:05]MH_SAM_APDU [04:16:05]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 40 EC 00 00 35 04 06 00 EA 61 F1 69 AD 1B [04:16:05]Write to MH i2c: E2 38 00 2E 00 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 40 EC 00 00 35 04 06 00 EA 61 F1 69 AD 1B 00 00 35 [04:16:05]Write i2c OK [04:16:05]MH_I2C_Read... [04:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:05]Read from MH i2c: E2 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [04:16:05]RAPDU: 90 00 [04:16:05]wFMCommunicate OK [04:16:05]wFMCommunicate request_size=4 [04:16:05]MH_SAM_APDU [04:16:05]CAPDU: 80 0D 03 02 [04:16:05]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [04:16:05]Write i2c OK [04:16:05]MH_I2C_Read... [04:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:16:05]Read from MH i2c: E2 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 0B 00 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 0B 00 2F 00 00 00 99 E3 75 1D 0B EC D5 90 00 85 [04:16:05]RAPDU: 00 99 E3 75 1D 0B EC D5 90 00 [04:16:05]wFMCommunicate OK [04:16:05]SAM_PROTO_SignData done [04:16:05]FM_MakeSignedData done [04:16:05]CreateOFDProtocolMessage [04:16:05]wFMCommunicate request_size=4 [04:16:05]MH_SAM_APDU [04:16:05]CAPDU: 80 11 00 00 [04:16:05]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [04:16:05]Write i2c OK [04:16:05]MH_I2C_Read... [04:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:05]Read from MH i2c: E2 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: E2 17 00 [04:16:05]MH_I2C_Read... [04:16:05]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 36 37 34 90 00 01 [04:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:16:05]wFMCommunicate OK [04:16:05]CreateOFDProtocolMessage done [04:16:05]OFDSenderStorePacket 60480 [04:16:05]StoreOFDPacket docnum=60480 [04:16:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3A 01 00 00 89 BE 32 01 99 F9 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 84 BE 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 40 EC 00 00 35 04 06 00 EA 61 F1 69 AD 1B 00 99 E3 75 1D 0B EC D5 [04:16:05]CheckFolder [04:16:05]dirname=/storage/ofd_packets [04:16:05]CheckFolder done [04:16:05]ProducePacketName [04:16:05]name=ofd_packets/00060480 [04:16:05]NVStorageSaveData ofd_packets/00060480 [04:16:05]File name is /storage/ofd_packets/00060480 [04:16:05]Write 344 bytes [04:16:05]NVStorageSaveData done [04:16:05]OFDSenderStorePacket done [04:16:05]KKMCreateOFDPacket done [04:16:05]NVStorageSaveData kkm_last_timestamp [04:16:05]File name is /storage/kkm_last_timestamp [04:16:05]Write 4 bytes [04:16:05]NVStorageSaveData done [04:16:05]ExternCall_PrintAddStr [04:16:05]wPrintStart [04:16:05]Write to MH i2c: 01 00 00 31 00 31 [04:16:05]Write i2c OK [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: 01 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: 01 07 00 [04:16:05]MH_I2C_Read... [04:16:05]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [04:16:05]RasterBufferAndPrint [04:16:05]line Счет N : (3)200124 [04:16:05]line ИНН: 02508201610067 [04:16:05]line Контрольно-Кассовый Чек [04:16:05]line ПРОДАЖА [04:16:05]line Товар: 4600682557456 [04:16:05]line Напиток FLash up energy эн ж/б 0,5/0,45л [04:16:05]line 1.000 * 69.00 [04:16:05]line = 69.00 [04:16:05]line НДС 12% НСП 1% [04:16:05]line > о реализуемом товаре [04:16:05]line ИТОГО: 69.00 [04:16:05]line НСП 1% : 0.61 [04:16:05]line НДС 12% : 7.33 [04:16:05]line Наличными: 0.00 [04:16:05]line Безнал.: 69.00 [04:16:05]line Место: АЗС № 87 "Партнер Нефть" [04:16:05]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [04:16:05]line СНО: Общий режим [04:16:05]line Чек 12 27.10.2024 04:16 [04:16:05]line Смена: 532 ФФД: 1.0 [04:16:05]line ЗНМ: 0300000084 [04:16:05]line РНМ: 0000000000091622 [04:16:05]line Версия ККМ: 001 [04:16:05]line Платежная система: Mbank [04:16:05]line ФМ: 0000000000874674 [04:16:05]line ФД: 60480 [04:16:05]line ФПД: 257706382961947 [04:16:05]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T041604&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60480&fm=257706382961947&tin=02508201610067®Number=0000000000091622&sum=6900 [04:16:05]OFD Sender: Processing packet 60480 [packets to send 30, broken 29] [04:16:05]ProducePacketName [04:16:05]name=ofd_packets/00060480 [04:16:05]OFD Sender: To server: pG, [04:16:05]CommunicateWithHost lk.salyk.kg:30040 [04:16:05]ConnectInit lk.salyk.kg [04:16:05]line 0 [04:16:05]written 0, free lines is 4095 [04:16:05]Connected sock=11 [04:16: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 36 37 34 3A 01 00 00 89 BE 32 01 99 F9 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 84 BE 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 40 EC 00 00 35 04 06 00 EA 61 F1 69 AD 1B 00 99 E3 75 1D 0B EC D5 [04:16:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 33 31 47 00 2E 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 40 EC 00 00 F4 03 04 00 6C 64 1D 67 B6 04 01 00 00 DC 24 98 7E 05 0C A7 7B [04:16:05]CommunicateWithHost err = 0 [04:16:05]CheckOFDResponse [04:16:05]1017 (14) - 77093643461234 [04:16:05]1041 (16) - 0000000000874674 [04:16:05]1040 (4) - 60480 [04:16:05]1012 (4) - 26.10.2024 21:51 [04:16:05]1206 (1) - 0 [04:16:05]OFD Sender: Remove packet 60480 [04:16:05]ProducePacketName [04:16:05]name=ofd_packets/00060480 [04:16:05]NVStorageDeleteData [04:16:06]Write to MH i2c: 01 00 00 5B 00 5B [04:16:06]Write i2c OK [04:16:06]MH_I2C_Read... [04:16:06]Read from MH i2c: 01 [04:16:06]MH_I2C_Read... [04:16:06]Read from MH i2c: 01 07 00 [04:16:06]MH_I2C_Read... [04:16:06]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E7 0C 55 [04:16:06]RasterBufferAndPrint [04:16:06]line [04:16:06]line [04:16:06]line [04:16:06]line [04:16:06]line [04:16:06]written 0, free lines is 3310 [04:16:06]MH_Cut [04:16:06]Write to MH i2c: D1 01 00 62 00 01 34 [04:16:06]Write i2c OK [04:16:06]MH_I2C_Read... [04:16:06]Read from MH i2c: D1 [04:16:06]MH_I2C_Read... [04:16:06]Read from MH i2c: D1 01 00 [04:16:06]MH_I2C_Read... [04:16:06]Read from MH i2c: D1 01 00 62 00 00 33 [04:16:06]Write to MH i2c: 01 00 00 63 00 63 [04:16:06]Write i2c OK [04:16:06]MH_I2C_Read... [04:16:06]OFD Sender: No OFD packet to send [04:16:06]*** Cut start [04:16:06]*** Partial cut [04:16:06]*** CUTSNS_PIN = 1 [04:16:06]*** CUTSNS_PIN = 0 [04:16:07]*** Brake cut motor [04:16:07]Read from MH i2c: 01 [04:16:07]MH_I2C_Read... [04:16:07]*** Stop cut motor [04:16:07]*** Cut end [04:16:07]Read from MH i2c: 01 07 00 [04:16:07]MH_I2C_Read... [04:16:07]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [04:16:07]process_action close_receipt done [04:16:07]requested_data is exist [04:16:07]produce_requested_data [04:16:07]requested_item fm.sn is exist - process it [04:16:07]wFMCommunicate request_size=4 [04:16:07]MH_SAM_APDU [04:16:07]CAPDU: 80 11 00 00 [04:16:07]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [04:16:07]Write i2c OK [04:16:07]MH_I2C_Read... [04:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:07]Read from MH i2c: E2 [04:16:07]MH_I2C_Read... [04:16:07]Read from MH i2c: E2 17 00 [04:16:07]MH_I2C_Read... [04:16:07]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 36 37 34 90 00 35 [04:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:16:07]wFMCommunicate OK [04:16:07]requested_item fd.num is exist - process it [04:16:07]SAM_PROTO_GetFieldsCounters [04:16:07]wFMCommunicate request_size=4 [04:16:07]MH_SAM_APDU [04:16:07]CAPDU: 80 13 00 00 [04:16:07]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [04:16:07]Write i2c OK [04:16:07]MH_I2C_Read... [04:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:07]Read from MH i2c: E2 [04:16:07]MH_I2C_Read... [04:16:07]Read from MH i2c: E2 62 00 [04:16:07]MH_I2C_Read... [04:16:07]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 40 EC 00 00 0E 04 04 00 14 02 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 67 [04:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 40 EC 00 00 0E 04 04 00 14 02 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 [04:16:07]wFMCommunicate OK [04:16:07]SAM_PROTO_GetFieldsCounters done [04:16:07]requested_item shift.num is exist - process it [04:16:07]requested_item shift.opened is exist - process it [04:16:07]req_shift_opened [04:16:07]FM_GetShiftState [04:16:07]SAM_PROTO_GetShiftState [04:16:07]wFMCommunicate request_size=4 [04:16:07]MH_SAM_APDU [04:16:07]CAPDU: 80 13 01 00 [04:16:07]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [04:16:07]Write i2c OK [04:16:07]MH_I2C_Read... [04:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:07]Read from MH i2c: E2 [04:16:07]MH_I2C_Read... [04:16:07]Read from MH i2c: E2 0E 00 [04:16:07]MH_I2C_Read... [04:16:07]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 7F [04:16:07]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:16:07]wFMCommunicate OK [04:16:07]SAM_PROTO_GetShiftState done [04:16:07]FM_GetShiftState done [04:16:07]req_shift_opened done [04:16:07]requested_item shift.open_date is exist - process it [04:16:07]req_shift_open_date [04:16:07]req_shift_open_date done [04:16:07]produce_requested_data done [04:16:07]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60480,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [04:16:07]process_action_free close_receipt [04:16:07]json_value_free [04:16:07]json_value_free done [04:16:07]process_json_proto returns [04:16:07]Send response to host [04:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60480,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [04:16:07]free response buf [04:16:07]execute_script done [04:16:07]execute_script returns [04:16:07]free content buf [04:16:07]Sock 9.Close socket [04:16:07]Sock 9.Thread stoped [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:36]accept exits with 7 [04:21:36]New connection [04:21:36]New thread 3067071844 created [04:21:36]Thread 3067215204 joined [04:21:36]Waiting for new connection... [04:21:36] Sock 7.Parse request [04:21:36]Sock 7.Check first char [04:21:36]Sock 7.First char is OK [04:21:36]request: POST /json_proto HTTP/1.0 [04:21:36]Method: POST [04:21:36]URL: /json_proto [04:21:36]Method is POST - this is cgi request [04:21:36]url: /json_proto [04:21:36]query_string will be loaded in cgi processing [04:21:36]execute_cgi json_proto POST (null) [04:21:36]execute_cgi path=json_proto method=POST [04:21:36]POST find Content-Length [04:21:36]Host: 172.17.42.196:8080 [04:21:36]Content-Length: 668 [04:21:36]Content-Type: application/json [04:21:36] [04:21:36]POST finish read [04:21:36]Found Content-Length = 668 [04:21:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200125", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:36]execute_script... [04:21:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200125", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:21:36]POST & json_proto [04:21:36]process_json_proto [04:21:36]json parsed OK: [04:21:36]protocol is kg_v1.0 [04:21:36]action value=close_receipt [04:21:36]process_action close_receipt [04:21:36]cmd_close_receipt [04:21:36]MH_GetDate [04:21:36]Write to MH i2c: F0 00 00 67 00 56 [04:21:36]Write i2c OK [04:21:36]MH_I2C_Read... [04:21:36]Read from MH i2c: F0 [04:21:36]MH_I2C_Read... [04:21:36]Read from MH i2c: F0 09 00 [04:21:36]MH_I2C_Read... [04:21:36]Read from MH i2c: F0 09 00 67 00 00 D1 BF 1D 67 FF C4 6B 64 05 [04:21:36]GetLastDocTimeStamp 1730002564 [04:21:36]current date 1730002897 [04:21:36]FM_GetShiftState [04:21:36]SAM_PROTO_GetShiftState [04:21:36]wFMCommunicate request_size=4 [04:21:36]MH_SAM_APDU [04:21:36]CAPDU: 80 13 01 00 [04:21:36]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [04:21:36]Write i2c OK [04:21:36]MH_I2C_Read... [04:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:36]Read from MH i2c: E2 [04:21:36]MH_I2C_Read... [04:21:36]Read from MH i2c: E2 0E 00 [04:21:36]MH_I2C_Read... [04:21:36]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 81 [04:21:36]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:21:36]wFMCommunicate OK [04:21:36]SAM_PROTO_GetShiftState done [04:21:36]FM_GetShiftState done [04:21:36]opened in 1729989505 [04:21:36]opened+sec_in_day 1730075905 [04:21:36]quantity*price = 19800 [04:21:36]sum+1 = 19801 [04:21:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 198.00 НСП 1% : 1.75 НДС 12% : 21.03 Наличными: 198.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 13 27.10.2024 04:21 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60481 ФПД: 170797488322518 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T042137&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60481&fm=170797488322518&tin=02508201610067®Number=0000000000091622&sum=19800 0 [04:21:38]StoreToDocumentArchive [04:21:38]shift 532 fd 60481 [04:21:38]save to /storage/0532/doc_00060481 [04:21:38]save last doc name /storage/0532/doc_00060481 to /storage/kkm_last_doc_name [04:21:38]save OK [04:21:38]Clear old archive folders... [04:21:38]ProcessDocumentItem done err = 0, tmpTLVsize=293 [04:21:38]tlvbuf is 002EA500 [04:21:38]SAM_PROTO_ClearQueue [04:21:38]wFMCommunicate request_size=4 [04:21:38]MH_SAM_APDU [04:21:38]CAPDU: 80 09 00 00 [04:21:38]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [04:21:38]Write i2c OK [04:21:38]MH_I2C_Read... [04:21:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:38]Read from MH i2c: E2 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [04:21:38]RAPDU: 90 00 [04:21:38]wFMCommunicate OK [04:21:38]SAM_PROTO_ClearQueue done [04:21:38]KKMCreateOFDPacket [04:21:38]OFDProtocolAddRootSTLVToBuf [04:21:38]FM_MakeSignedData [04:21:38]FM_MakeSignedData [04:21:38]SAM_PROTO_SignData [04:21:38]wFMCommunicate request_size=4 [04:21:38]MH_SAM_APDU [04:21:38]CAPDU: 80 0D 01 02 [04:21:38]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [04:21:38]Write i2c OK [04:21:38]MH_I2C_Read... [04:21:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:38]Read from MH i2c: E2 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [04:21:38]RAPDU: 90 00 [04:21:38]wFMCommunicate OK [04:21:38]wFMCommunicate request_size=255 [04:21:38]MH_SAM_APDU [04:21:38]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 D1 BF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [04:21:38]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 D1 BF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 5E [04:21:38]Write i2c OK [04:21:38]MH_I2C_Read... [04:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:38]Read from MH i2c: E2 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [04:21:38]RAPDU: 90 00 [04:21:38]wFMCommunicate OK [04:21:38]wFMCommunicate request_size=52 [04:21:38]MH_SAM_APDU [04:21:38]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 41 EC 00 00 35 04 06 00 9B 56 E3 9E B7 D6 [04:21:38]Write to MH i2c: E2 37 00 78 00 80 0D 02 02 2F 00 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 41 EC 00 00 35 04 06 00 9B 56 E3 9E B7 D6 00 00 E0 [04:21:38]Write i2c OK [04:21:38]MH_I2C_Read... [04:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:38]Read from MH i2c: E2 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [04:21:38]RAPDU: 90 00 [04:21:38]wFMCommunicate OK [04:21:38]wFMCommunicate request_size=4 [04:21:38]MH_SAM_APDU [04:21:38]CAPDU: 80 0D 03 02 [04:21:38]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [04:21:38]Write i2c OK [04:21:38]MH_I2C_Read... [04:21:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:21:38]Read from MH i2c: E2 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 0B 00 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 0B 00 79 00 00 A4 44 9C 0D 7D 12 CB C5 90 00 A5 [04:21:38]RAPDU: A4 44 9C 0D 7D 12 CB C5 90 00 [04:21:38]wFMCommunicate OK [04:21:38]SAM_PROTO_SignData done [04:21:38]FM_MakeSignedData done [04:21:38]CreateOFDProtocolMessage [04:21:38]wFMCommunicate request_size=4 [04:21:38]MH_SAM_APDU [04:21:38]CAPDU: 80 11 00 00 [04:21:38]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [04:21:38]Write i2c OK [04:21:38]MH_I2C_Read... [04:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:38]Read from MH i2c: E2 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: E2 17 00 [04:21:38]MH_I2C_Read... [04:21:38]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 36 37 34 90 00 4B [04:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:21:38]wFMCommunicate OK [04:21:38]CreateOFDProtocolMessage done [04:21:38]OFDSenderStorePacket 60481 [04:21:38]StoreOFDPacket docnum=60481 [04:21:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 39 01 00 00 72 7C 31 01 4C 5F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 D1 BF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 41 EC 00 00 35 04 06 00 9B 56 E3 9E B7 D6 A4 44 9C 0D 7D 12 CB C5 [04:21:38]CheckFolder [04:21:38]dirname=/storage/ofd_packets [04:21:38]CheckFolder done [04:21:38]ProducePacketName [04:21:38]name=ofd_packets/00060481 [04:21:38]NVStorageSaveData ofd_packets/00060481 [04:21:38]File name is /storage/ofd_packets/00060481 [04:21:38]Write 343 bytes [04:21:38]NVStorageSaveData done [04:21:38]OFDSenderStorePacket done [04:21:38]KKMCreateOFDPacket done [04:21:38]NVStorageSaveData kkm_last_timestamp [04:21:38]File name is /storage/kkm_last_timestamp [04:21:38]Write 4 bytes [04:21:38]NVStorageSaveData done [04:21:38]OFD Sender: Processing packet 60481 [packets to send 30, broken 29] [04:21:38]ProducePacketName [04:21:38]name=ofd_packets/00060481 [04:21:38]OFD Sender: To server: pG, [04:21:38]CommunicateWithHost lk.salyk.kg:30040 [04:21:38]ConnectInit lk.salyk.kg [04:21:38]ExternCall_PrintAddStr [04:21:38]wPrintStart [04:21:38]Write to MH i2c: 01 00 00 7B 00 7B [04:21:38]Write i2c OK [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: 01 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: 01 07 00 [04:21:38]MH_I2C_Read... [04:21:38]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [04:21:38]RasterBufferAndPrint [04:21:38]line Счет N : (3)200125 [04:21:38]line ИНН: 02508201610067 [04:21:38]line Контрольно-Кассовый Чек [04:21:38]line ПРОДАЖА [04:21:38]line Товар: 4870022003305 [04:21:38]line Напиток Gorilla эн нат ж/б 0,5/0,45л [04:21:38]line 2.000 * 99.00 [04:21:38]line = 198.00 [04:21:38]line НДС 12% НСП 1% [04:21:38]line > о реализуемом товаре [04:21:38]line ИТОГО: 198.00 [04:21:38]line НСП 1% : 1.75 [04:21:38]line НДС 12% : 21.03 [04:21:38]line Наличными: 198.00 [04:21:38]line Безнал.: 0.00 [04:21:38]line Место: АЗС № 87 "Партнер Нефть" [04:21:38]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [04:21:38]line СНО: Общий режим [04:21:38]line Чек 13 27.10.2024 04:21 [04:21:38]line Смена: 532 ФФД: 1.0 [04:21:38]line ЗНМ: 0300000084 [04:21:38]line РНМ: 0000000000091622 [04:21:38]line Версия ККМ: 001 [04:21:38]line ФМ: 0000000000874674 [04:21:38]line ФД: 60481 [04:21:38]line ФПД: 170797488322518 [04:21:38]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T042137&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60481&fm=170797488322518&tin=02508201610067®Number=0000000000091622&sum=19800 [04:21:39]line 0 [04:21:39]written 0, free lines is 4095 [04:21:39]Write to MH i2c: 01 00 00 A4 00 A4 [04:21:39]Write i2c OK [04:21:39]MH_I2C_Read... [04:21:39]Read from MH i2c: 01 [04:21:39]MH_I2C_Read... [04:21:39]Read from MH i2c: 01 07 00 [04:21:39]MH_I2C_Read... [04:21:39]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 E4 0C 9B [04:21:39]RasterBufferAndPrint [04:21:39]line [04:21:39]line [04:21:39]line [04:21:39]line [04:21:39]line [04:21:39]written 0, free lines is 3303 [04:21:39]MH_Cut [04:21:39]Write to MH i2c: D1 01 00 AB 00 01 7D [04:21:39]Write i2c OK [04:21:39]MH_I2C_Read... [04:21:39]Read from MH i2c: D1 [04:21:39]MH_I2C_Read... [04:21:39]Read from MH i2c: D1 01 00 [04:21:39]MH_I2C_Read... [04:21:39]Read from MH i2c: D1 01 00 AB 00 00 7C [04:21:39]Write to MH i2c: 01 00 00 AC 00 AC [04:21:39]Write i2c OK [04:21:39]MH_I2C_Read... [04:21:40]*** Cut start [04:21:40]*** Partial cut [04:21:40]*** CUTSNS_PIN = 1 [04:21:40]*** CUTSNS_PIN = 0 [04:21:40]*** Brake cut motor [04:21:40]Read from MH i2c: 01 [04:21:40]MH_I2C_Read... [04:21:40]*** Stop cut motor [04:21:40]*** Cut end [04:21:40]Read from MH i2c: 01 07 00 [04:21:40]MH_I2C_Read... [04:21:40]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [04:21:40]process_action close_receipt done [04:21:40]requested_data is exist [04:21:40]produce_requested_data [04:21:40]requested_item fm.sn is exist - process it [04:21:40]wFMCommunicate request_size=4 [04:21:40]MH_SAM_APDU [04:21:40]CAPDU: 80 11 00 00 [04:21:40]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [04:21:40]Write i2c OK [04:21:40]MH_I2C_Read... [04:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:40]Read from MH i2c: E2 [04:21:40]MH_I2C_Read... [04:21:40]Read from MH i2c: E2 17 00 [04:21:40]MH_I2C_Read... [04:21:40]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 36 37 34 90 00 7E [04:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:21:40]wFMCommunicate OK [04:21:40]requested_item fd.num is exist - process it [04:21:40]SAM_PROTO_GetFieldsCounters [04:21:40]wFMCommunicate request_size=4 [04:21:40]MH_SAM_APDU [04:21:40]CAPDU: 80 13 00 00 [04:21:40]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [04:21:40]Write i2c OK [04:21:40]MH_I2C_Read... [04:21:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 62 00 [04:21:41]MH_I2C_Read... [04:21:41]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 41 EC 00 00 0E 04 04 00 14 02 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 B4 [04:21: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 41 EC 00 00 0E 04 04 00 14 02 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 [04:21:41]wFMCommunicate OK [04:21:41]SAM_PROTO_GetFieldsCounters done [04:21:41]requested_item shift.num is exist - process it [04:21:41]requested_item shift.opened is exist - process it [04:21:41]req_shift_opened [04:21:41]FM_GetShiftState [04:21:41]SAM_PROTO_GetShiftState [04:21:41]wFMCommunicate request_size=4 [04:21:41]MH_SAM_APDU [04:21:41]CAPDU: 80 13 01 00 [04:21:41]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [04:21:41]Write i2c OK [04:21:41]MH_I2C_Read... [04:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:41]Read from MH i2c: E2 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 0E 00 [04:21:41]MH_I2C_Read... [04:21:41]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 C8 [04:21:41]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:21:41]wFMCommunicate OK [04:21:41]SAM_PROTO_GetShiftState done [04:21:41]FM_GetShiftState done [04:21:41]req_shift_opened done [04:21:41]requested_item shift.open_date is exist - process it [04:21:41]req_shift_open_date [04:21:41]req_shift_open_date done [04:21:41]produce_requested_data done [04:21:41]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60481,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [04:21:41]process_action_free close_receipt [04:21:41]json_value_free [04:21:41]json_value_free done [04:21:41]process_json_proto returns [04:21:41]Send response to host [04:21:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60481,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [04:21:41]free response buf [04:21:41]execute_script done [04:21:41]execute_script returns [04:21:41]free content buf [04:21:41]Sock 7.Close socket [04:21:41]Sock 7.Thread stoped [04:23:51]ConnectInit Can't connect to host [04:23:51]CommunicateWithHost connect error [04:23:51]CommunicateWithHost err = -1 [04:23:51]OFD Sender: Server communicate error [04:23:56]OFD Sender: Processing packet 60481 [packets to send 30, broken 29] [04:23:56]ProducePacketName [04:23:56]name=ofd_packets/00060481 [04:23:56]OFD Sender: To server: pG, [04:23:56]CommunicateWithHost lk.salyk.kg:30040 [04:23:56]ConnectInit lk.salyk.kg [04:23:56]Connected sock=7 [04:23: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 36 37 34 39 01 00 00 72 7C 31 01 4C 5F 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 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 D1 BF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 41 EC 00 00 35 04 06 00 9B 56 E3 9E B7 D6 A4 44 9C 0D 7D 12 CB C5 [04:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 AA 19 47 00 91 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 36 37 34 10 04 04 00 41 EC 00 00 F4 03 04 00 43 66 1D 67 B6 04 01 00 00 68 97 D2 3C D0 99 47 22 [04:23:57]CommunicateWithHost err = 0 [04:23:57]CheckOFDResponse [04:23:57]1017 (14) - 77093643461234 [04:23:57]1041 (16) - 0000000000874674 [04:23:57]1040 (4) - 60481 [04:23:57]1012 (4) - 26.10.2024 21:59 [04:23:57]1206 (1) - 0 [04:23:57]OFD Sender: Remove packet 60481 [04:23:57]ProducePacketName [04:23:57]name=ofd_packets/00060481 [04:23:57]NVStorageDeleteData [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:15]accept exits with 9 [04:39:15]New connection [04:39:15]New thread 3067215204 created [04:39:15]Thread 3067071844 joined [04:39:15]Waiting for new connection... [04:39:15] Sock 9.Parse request [04:39:15]Sock 9.Check first char [04:39:15]Sock 9.First char is OK [04:39:15]request: POST /json_proto HTTP/1.0 [04:39:15]Method: POST [04:39:15]URL: /json_proto [04:39:15]Method is POST - this is cgi request [04:39:15]url: /json_proto [04:39:15]query_string will be loaded in cgi processing [04:39:15]execute_cgi json_proto POST (null) [04:39:15]execute_cgi path=json_proto method=POST [04:39:15]POST find Content-Length [04:39:15]Host: 172.17.42.196:8080 [04:39:15]Content-Length: 623 [04:39:15]Content-Type: application/json [04:39:15] [04:39:15]POST finish read [04:39:15]Found Content-Length = 623 [04:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200126", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:39:15]execute_script... [04:39:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200126", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:39:15]POST & json_proto [04:39:15]process_json_proto [04:39:15]json parsed OK: [04:39:15]protocol is kg_v1.0 [04:39:15]action value=close_receipt [04:39:15]process_action close_receipt [04:39:15]cmd_close_receipt [04:39:15]MH_GetDate [04:39:15]Write to MH i2c: F0 00 00 B0 00 9F [04:39:15]Write i2c OK [04:39:15]MH_I2C_Read... [04:39:15]Read from MH i2c: F0 [04:39:15]MH_I2C_Read... [04:39:15]Read from MH i2c: F0 09 00 [04:39:15]MH_I2C_Read... [04:39:15]Read from MH i2c: F0 09 00 B0 00 00 F3 C3 1D 67 FF C4 6B 64 74 [04:39:15]GetLastDocTimeStamp 1730002897 [04:39:15]current date 1730003955 [04:39:15]FM_GetShiftState [04:39:15]SAM_PROTO_GetShiftState [04:39:15]wFMCommunicate request_size=4 [04:39:15]MH_SAM_APDU [04:39:15]CAPDU: 80 13 01 00 [04:39:15]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [04:39:15]Write i2c OK [04:39:15]MH_I2C_Read... [04:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:39:15]Read from MH i2c: E2 [04:39:15]MH_I2C_Read... [04:39:15]Read from MH i2c: E2 0E 00 [04:39:15]MH_I2C_Read... [04:39:15]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CA [04:39:15]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:39:15]wFMCommunicate OK [04:39:15]SAM_PROTO_GetShiftState done [04:39:15]FM_GetShiftState done [04:39:15]opened in 1729989505 [04:39:15]opened+sec_in_day 1730075905 [04:39:15]quantity*price = 14400 [04:39:15]sum+1 = 14401 [04:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 14 27.10.2024 04:39 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60482 ФПД: 80577106347155 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T043915&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60482&fm=80577106347155&tin=02508201610067®Number=0000000000091622&sum=14400 0 [04:39:16]StoreToDocumentArchive [04:39:16]shift 532 fd 60482 [04:39:16]save to /storage/0532/doc_00060482 [04:39:16]save last doc name /storage/0532/doc_00060482 to /storage/kkm_last_doc_name [04:39:16]save OK [04:39:16]Clear old archive folders... [04:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=275 [04:39:16]tlvbuf is 002EBF30 [04:39:16]SAM_PROTO_ClearQueue [04:39:16]wFMCommunicate request_size=4 [04:39:16]MH_SAM_APDU [04:39:16]CAPDU: 80 09 00 00 [04:39:16]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [04:39:16]Write i2c OK [04:39:16]MH_I2C_Read... [04:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:39:16]Read from MH i2c: E2 [04:39:16]MH_I2C_Read... [04:39:16]Read from MH i2c: E2 03 00 [04:39:16]MH_I2C_Read... [04:39:16]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [04:39:16]RAPDU: 90 00 [04:39:16]wFMCommunicate OK [04:39:16]SAM_PROTO_ClearQueue done [04:39:16]KKMCreateOFDPacket [04:39:16]OFDProtocolAddRootSTLVToBuf [04:39:16]FM_MakeSignedData [04:39:16]FM_MakeSignedData [04:39:16]SAM_PROTO_SignData [04:39:16]wFMCommunicate request_size=4 [04:39:16]MH_SAM_APDU [04:39:16]CAPDU: 80 0D 01 02 [04:39:16]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [04:39:16]Write i2c OK [04:39:16]MH_I2C_Read... [04:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:39:16]Read from MH i2c: E2 [04:39:16]MH_I2C_Read... [04:39:16]Read from MH i2c: E2 03 00 [04:39:16]MH_I2C_Read... [04:39:16]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [04:39:16]RAPDU: 90 00 [04:39:16]wFMCommunicate OK [04:39:16]wFMCommunicate request_size=255 [04:39:16]MH_SAM_APDU [04:39:16]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0E 00 00 00 F4 03 04 00 F3 C3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [04:39:16]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0E 00 00 00 F4 03 04 00 F3 C3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 96 [04:39:16]Write i2c OK [04:39:16]MH_I2C_Read... [04:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:39:17]Read from MH i2c: E2 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: E2 03 00 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [04:39:17]RAPDU: 90 00 [04:39:17]wFMCommunicate OK [04:39:17]wFMCommunicate request_size=34 [04:39:17]MH_SAM_APDU [04:39:17]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 42 EC 00 00 35 04 06 00 49 48 D1 CD 04 93 [04:39:17]Write to MH i2c: E2 25 00 C1 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 42 EC 00 00 35 04 06 00 49 48 D1 CD 04 93 00 00 F4 [04:39:17]Write i2c OK [04:39:17]MH_I2C_Read... [04:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:39:17]Read from MH i2c: E2 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: E2 03 00 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [04:39:17]RAPDU: 90 00 [04:39:17]wFMCommunicate OK [04:39:17]wFMCommunicate request_size=4 [04:39:17]MH_SAM_APDU [04:39:17]CAPDU: 80 0D 03 02 [04:39:17]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [04:39:17]Write i2c OK [04:39:17]MH_I2C_Read... [04:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:39:17]Read from MH i2c: E2 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: E2 0B 00 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: E2 0B 00 C2 00 00 1E C1 DA 63 6B 9B 52 A0 90 00 52 [04:39:17]RAPDU: 1E C1 DA 63 6B 9B 52 A0 90 00 [04:39:17]wFMCommunicate OK [04:39:17]SAM_PROTO_SignData done [04:39:17]FM_MakeSignedData done [04:39:17]CreateOFDProtocolMessage [04:39:17]wFMCommunicate request_size=4 [04:39:17]MH_SAM_APDU [04:39:17]CAPDU: 80 11 00 00 [04:39:17]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [04:39:17]Write i2c OK [04:39:17]MH_I2C_Read... [04:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:39:17]Read from MH i2c: E2 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: E2 17 00 [04:39:17]MH_I2C_Read... [04:39:17]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 36 37 34 90 00 94 [04:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:39:17]wFMCommunicate OK [04:39:17]CreateOFDProtocolMessage done [04:39:17]OFDSenderStorePacket 60482 [04:39:17]StoreOFDPacket docnum=60482 [04:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 37 90 1F 01 8D 85 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0E 00 00 00 F4 03 04 00 F3 C3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 42 EC 00 00 35 04 06 00 49 48 D1 CD 04 93 1E C1 DA 63 6B 9B 52 A0 [04:39:17]CheckFolder [04:39:17]dirname=/storage/ofd_packets [04:39:17]CheckFolder done [04:39:17]ProducePacketName [04:39:17]name=ofd_packets/00060482 [04:39:17]NVStorageSaveData ofd_packets/00060482 [04:39:17]File name is /storage/ofd_packets/00060482 [04:39:17]Write 325 bytes [04:39:17]NVStorageSaveData done [04:39:17]OFDSenderStorePacket done [04:39:17]KKMCreateOFDPacket done [04:39:17]NVStorageSaveData kkm_last_timestamp [04:39:17]File name is /storage/kkm_last_timestamp [04:39:17]Write 4 bytes [04:39:17]NVStorageSaveData done [04:39:17]ExternCall_PrintAddStr [04:39:17]wPrintStart [04:39:17]Write to MH i2c: 01 00 00 C4 00 C4 [04:39:17]Write i2c OK [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: 01 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: 01 07 00 [04:39:17]MH_I2C_Read... [04:39:17]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [04:39:17]RasterBufferAndPrint [04:39:17]line Счет N : (3)200126 [04:39:17]line ИНН: 02508201610067 [04:39:17]line Контрольно-Кассовый Чек [04:39:17]line ПРОДАЖА [04:39:17]line Товар: 48743587 [04:39:17]line Сигареты Winston XStyle Silver [04:39:17]line 1.000 * 144.00 [04:39:17]line = 144.00 [04:39:17]line НДС 12% НСП 1% [04:39:17]line > о реализуемом товаре [04:39:17]line ИТОГО: 144.00 [04:39:17]line НСП 1% : 1.27 [04:39:17]line НДС 12% : 15.29 [04:39:17]line Наличными: 144.00 [04:39:17]line Безнал.: 0.00 [04:39:17]line Место: АЗС № 87 "Партнер Нефть" [04:39:17]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [04:39:17]line СНО: Общий режим [04:39:17]line Чек 14 27.10.2024 04:39 [04:39:17]line Смена: 532 ФФД: 1.0 [04:39:17]line ЗНМ: 0300000084 [04:39:17]line РНМ: 0000000000091622 [04:39:17]line Версия ККМ: 001 [04:39:17]line ФМ: 0000000000874674 [04:39:17]line ФД: 60482 [04:39:17]line ФПД: 80577106347155 [04:39:17]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T043915&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60482&fm=80577106347155&tin=02508201610067®Number=0000000000091622&sum=14400 [04:39:17]OFD Sender: Processing packet 60482 [packets to send 30, broken 29] [04:39:17]ProducePacketName [04:39:17]name=ofd_packets/00060482 [04:39:17]OFD Sender: To server: pG, [04:39:17]CommunicateWithHost lk.salyk.kg:30040 [04:39:17]ConnectInit lk.salyk.kg [04:39:17]line 0 [04:39:17]written 0, free lines is 4095 [04:39:17]Connected sock=11 [04:39: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 36 37 34 27 01 00 00 37 90 1F 01 8D 85 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 0E 00 00 00 F4 03 04 00 F3 C3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 42 EC 00 00 35 04 06 00 49 48 D1 CD 04 93 1E C1 DA 63 6B 9B 52 A0 [04:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 96 97 47 00 84 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 36 37 34 10 04 04 00 42 EC 00 00 F4 03 04 00 DC 69 1D 67 B6 04 01 00 00 64 86 CF B5 60 61 E4 2F [04:39:18]CommunicateWithHost err = 0 [04:39:18]CheckOFDResponse [04:39:18]1017 (14) - 77093643461234 [04:39:18]1041 (16) - 0000000000874674 [04:39:18]1040 (4) - 60482 [04:39:18]1012 (4) - 26.10.2024 22:14 [04:39:18]1206 (1) - 0 [04:39:18]OFD Sender: Remove packet 60482 [04:39:18]ProducePacketName [04:39:18]name=ofd_packets/00060482 [04:39:18]NVStorageDeleteData [04:39:18]Write to MH i2c: 01 00 00 ED 00 ED [04:39:18]Write i2c OK [04:39:18]MH_I2C_Read... [04:39:18]Read from MH i2c: 01 [04:39:18]MH_I2C_Read... [04:39:18]Read from MH i2c: 01 07 00 [04:39:18]MH_I2C_Read... [04:39:18]Read from MH i2c: 01 07 00 ED 00 00 00 00 00 00 D1 0C D1 [04:39:18]RasterBufferAndPrint [04:39:18]line [04:39:18]line [04:39:18]line [04:39:18]line [04:39:18]line [04:39:18]written 0, free lines is 3287 [04:39:18]MH_Cut [04:39:18]Write to MH i2c: D1 01 00 F4 00 01 C6 [04:39:18]Write i2c OK [04:39:18]MH_I2C_Read... [04:39:18]Read from MH i2c: D1 [04:39:18]MH_I2C_Read... [04:39:18]Read from MH i2c: D1 01 00 [04:39:18]MH_I2C_Read... [04:39:18]Read from MH i2c: D1 01 00 F4 00 00 C5 [04:39:18]Write to MH i2c: 01 00 00 F5 00 F5 [04:39:18]Write i2c OK [04:39:18]MH_I2C_Read... [04:39:18]OFD Sender: No OFD packet to send [04:39:18]*** Cut start [04:39:18]*** Partial cut [04:39:18]*** CUTSNS_PIN = 1 [04:39:18]*** CUTSNS_PIN = 0 [04:39:19]*** Brake cut motor [04:39:19]Read from MH i2c: 01 [04:39:19]MH_I2C_Read... [04:39:19]*** Stop cut motor [04:39:19]*** Cut end [04:39:19]Read from MH i2c: 01 07 00 [04:39:19]MH_I2C_Read... [04:39:19]Read from MH i2c: 01 07 00 F5 00 00 00 00 00 00 FF 0F 0A [04:39:19]process_action close_receipt done [04:39:19]requested_data is exist [04:39:19]produce_requested_data [04:39:19]requested_item fm.sn is exist - process it [04:39:19]wFMCommunicate request_size=4 [04:39:19]MH_SAM_APDU [04:39:19]CAPDU: 80 11 00 00 [04:39:19]Write to MH i2c: E2 08 00 F6 00 80 11 00 00 00 00 00 00 70 [04:39:19]Write i2c OK [04:39:19]MH_I2C_Read... [04:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:39:19]Read from MH i2c: E2 [04:39:19]MH_I2C_Read... [04:39:19]Read from MH i2c: E2 17 00 [04:39:19]MH_I2C_Read... [04:39:19]Read from MH i2c: E2 17 00 F6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C7 [04:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:39:19]wFMCommunicate OK [04:39:19]requested_item fd.num is exist - process it [04:39:19]SAM_PROTO_GetFieldsCounters [04:39:19]wFMCommunicate request_size=4 [04:39:19]MH_SAM_APDU [04:39:19]CAPDU: 80 13 00 00 [04:39:19]Write to MH i2c: E2 08 00 F7 00 80 13 00 00 00 00 00 00 73 [04:39:19]Write i2c OK [04:39:19]MH_I2C_Read... [04:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:39:19]Read from MH i2c: E2 [04:39:19]MH_I2C_Read... [04:39:19]Read from MH i2c: E2 62 00 [04:39:19]MH_I2C_Read... [04:39:19]Read from MH i2c: E2 62 00 F7 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 42 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [04:39: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 42 EC 00 00 0E 04 04 00 14 02 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 [04:39:19]wFMCommunicate OK [04:39:19]SAM_PROTO_GetFieldsCounters done [04:39:19]requested_item shift.num is exist - process it [04:39:19]requested_item shift.opened is exist - process it [04:39:19]req_shift_opened [04:39:19]FM_GetShiftState [04:39:19]SAM_PROTO_GetShiftState [04:39:19]wFMCommunicate request_size=4 [04:39:19]MH_SAM_APDU [04:39:19]CAPDU: 80 13 01 00 [04:39:19]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [04:39:19]Write i2c OK [04:39:19]MH_I2C_Read... [04:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:39:19]Read from MH i2c: E2 [04:39:19]MH_I2C_Read... [04:39:19]Read from MH i2c: E2 0E 00 [04:39:19]MH_I2C_Read... [04:39:19]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 11 [04:39:19]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:39:19]wFMCommunicate OK [04:39:19]SAM_PROTO_GetShiftState done [04:39:19]FM_GetShiftState done [04:39:19]req_shift_opened done [04:39:19]requested_item shift.open_date is exist - process it [04:39:19]req_shift_open_date [04:39:19]req_shift_open_date done [04:39:19]produce_requested_data done [04:39:19]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60482,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [04:39:19]process_action_free close_receipt [04:39:19]json_value_free [04:39:19]json_value_free done [04:39:19]process_json_proto returns [04:39:19]Send response to host [04:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60482,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [04:39:19]free response buf [04:39:19]execute_script done [04:39:19]execute_script returns [04:39:19]free content buf [04:39:19]Sock 9.Close socket [04:39:19]Sock 9.Thread stoped [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:14]accept exits with 10 [04:40:14]New connection [04:40:14]New thread 3067071844 created [04:40:14]Thread 3067215204 joined [04:40:14]Waiting for new connection... [04:40:14] Sock 10.Parse request [04:40:14]Sock 10.Check first char [04:40:14]Sock 10.First char is OK [04:40:14]request: POST /json_proto HTTP/1.0 [04:40:14]Method: POST [04:40:14]URL: /json_proto [04:40:14]Method is POST - this is cgi request [04:40:14]url: /json_proto [04:40:14]query_string will be loaded in cgi processing [04:40:14]execute_cgi json_proto POST (null) [04:40:14]execute_cgi path=json_proto method=POST [04:40:14]POST find Content-Length [04:40:14]Host: 172.17.42.196:8080 [04:40:14]Content-Length: 987 [04:40:14]Content-Type: application/json [04:40:14] [04:40:14]POST finish read [04:40:14]Found Content-Length = 987 [04:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200127", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:14]execute_script... [04:40:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200127", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 432.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:14]POST & json_proto [04:40:14]process_json_proto [04:40:14]json parsed OK: [04:40:14]protocol is kg_v1.0 [04:40:14]action value=close_receipt [04:40:14]process_action close_receipt [04:40:14]cmd_close_receipt [04:40:14]MH_GetDate [04:40:14]Write to MH i2c: F0 00 00 F9 00 E8 [04:40:14]Write i2c OK [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: F0 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: F0 09 00 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: F0 09 00 F9 00 00 2F C4 1D 67 FF C4 6B 64 FA [04:40:14]GetLastDocTimeStamp 1730003955 [04:40:14]current date 1730004015 [04:40:14]FM_GetShiftState [04:40:14]SAM_PROTO_GetShiftState [04:40:14]wFMCommunicate request_size=4 [04:40:14]MH_SAM_APDU [04:40:14]CAPDU: 80 13 01 00 [04:40:14]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [04:40:14]Write i2c OK [04:40:14]MH_I2C_Read... [04:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:14]Read from MH i2c: E2 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 0E 00 [04:40:14]MH_I2C_Read... [04:40:14]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 13 [04:40:14]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:40:14]wFMCommunicate OK [04:40:14]SAM_PROTO_GetShiftState done [04:40:14]FM_GetShiftState done [04:40:14]opened in 1729989505 [04:40:14]opened+sec_in_day 1730075905 [04:40:14]quantity*price = 14400 [04:40:14]sum+1 = 14401 [04:40:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 2.000 * 144.00 = 288.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 432.00 НСП 1% : 3.82 НДС 12% : 45.87 Наличными: 0.00 Безнал.: 432.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 15 27.10.2024 04:40 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60483 ФПД: 237164694518603 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044015&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60483&fm=237164694518603&tin=02508201610067®Number=0000000000091622&sum=43200 0 [04:40:16]StoreToDocumentArchive [04:40:16]shift 532 fd 60483 [04:40:16]save to /storage/0532/doc_00060483 [04:40:16]save last doc name /storage/0532/doc_00060483 to /storage/kkm_last_doc_name [04:40:16]save OK [04:40:16]Clear old archive folders... [04:40:16]ProcessDocumentItem done err = 0, tmpTLVsize=378 [04:40:16]tlvbuf is 00316410 [04:40:16]SAM_PROTO_ClearQueue [04:40:16]wFMCommunicate request_size=4 [04:40:16]MH_SAM_APDU [04:40:16]CAPDU: 80 09 00 00 [04:40:16]Write to MH i2c: E2 08 00 07 01 80 09 00 00 00 00 00 00 7A [04:40:16]Write i2c OK [04:40:16]MH_I2C_Read... [04:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:16]Read from MH i2c: E2 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [04:40:16]RAPDU: 90 00 [04:40:16]wFMCommunicate OK [04:40:16]SAM_PROTO_ClearQueue done [04:40:16]KKMCreateOFDPacket [04:40:16]OFDProtocolAddRootSTLVToBuf [04:40:16]FM_MakeSignedData [04:40:16]FM_MakeSignedData [04:40:16]SAM_PROTO_SignData [04:40:16]wFMCommunicate request_size=4 [04:40:16]MH_SAM_APDU [04:40:16]CAPDU: 80 0D 01 02 [04:40:16]Write to MH i2c: E2 08 00 08 01 80 0D 01 02 00 00 00 00 82 [04:40:16]Write i2c OK [04:40:16]MH_I2C_Read... [04:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:16]Read from MH i2c: E2 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [04:40:16]RAPDU: 90 00 [04:40:16]wFMCommunicate OK [04:40:16]wFMCommunicate request_size=255 [04:40:16]MH_SAM_APDU [04:40:16]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 [04:40:16]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 00 00 D8 [04:40:16]Write i2c OK [04:40:16]MH_I2C_Read... [04:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:16]Read from MH i2c: E2 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [04:40:16]RAPDU: 90 00 [04:40:16]wFMCommunicate OK [04:40:16]wFMCommunicate request_size=137 [04:40:16]MH_SAM_APDU [04:40:16]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2F C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 43 EC 00 00 35 04 06 00 D7 B3 35 5E BB 4B [04:40:16]Write to MH i2c: E2 8C 00 0A 01 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2F C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 43 EC 00 00 35 04 06 00 D7 B3 35 5E BB 4B 00 00 0B [04:40:16]Write i2c OK [04:40:16]MH_I2C_Read... [04:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:16]Read from MH i2c: E2 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [04:40:16]RAPDU: 90 00 [04:40:16]wFMCommunicate OK [04:40:16]wFMCommunicate request_size=4 [04:40:16]MH_SAM_APDU [04:40:16]CAPDU: 80 0D 03 02 [04:40:16]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [04:40:16]Write i2c OK [04:40:16]MH_I2C_Read... [04:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:16]Read from MH i2c: E2 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 0B 00 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 0B 00 0B 01 00 64 FB D6 3A CD B4 87 9A 90 00 99 [04:40:16]RAPDU: 64 FB D6 3A CD B4 87 9A 90 00 [04:40:16]wFMCommunicate OK [04:40:16]SAM_PROTO_SignData done [04:40:16]FM_MakeSignedData done [04:40:16]CreateOFDProtocolMessage [04:40:16]wFMCommunicate request_size=4 [04:40:16]MH_SAM_APDU [04:40:16]CAPDU: 80 11 00 00 [04:40:16]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [04:40:16]Write i2c OK [04:40:16]MH_I2C_Read... [04:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:16]Read from MH i2c: E2 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 17 00 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DE [04:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:40:16]wFMCommunicate OK [04:40:16]CreateOFDProtocolMessage done [04:40:16]OFDSenderStorePacket 60483 [04:40:16]StoreOFDPacket docnum=60483 [04:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 8E 01 00 00 62 B7 86 01 F0 4B 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2F C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 43 EC 00 00 35 04 06 00 D7 B3 35 5E BB 4B 64 FB D6 3A CD B4 87 9A [04:40:16]CheckFolder [04:40:16]dirname=/storage/ofd_packets [04:40:16]CheckFolder done [04:40:16]ProducePacketName [04:40:16]name=ofd_packets/00060483 [04:40:16]NVStorageSaveData ofd_packets/00060483 [04:40:16]File name is /storage/ofd_packets/00060483 [04:40:16]Write 428 bytes [04:40:16]NVStorageSaveData done [04:40:16]OFDSenderStorePacket done [04:40:16]KKMCreateOFDPacket done [04:40:16]NVStorageSaveData kkm_last_timestamp [04:40:16]File name is /storage/kkm_last_timestamp [04:40:16]Write 4 bytes [04:40:16]NVStorageSaveData done [04:40:16]ExternCall_PrintAddStr [04:40:16]wPrintStart [04:40:16]Write to MH i2c: 01 00 00 0D 01 0E [04:40:16]Write i2c OK [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: 01 [04:40:16]MH_I2C_Read... [04:40:16]Read from MH i2c: 01 07 00 [04:40:17]MH_I2C_Read... [04:40:17]OFD Sender: Processing packet 60483 [packets to send 30, broken 29] [04:40:17]ProducePacketName [04:40:17]name=ofd_packets/00060483 [04:40:17]OFD Sender: To server: pG, [04:40:17]CommunicateWithHost lk.salyk.kg:30040 [04:40:17]ConnectInit lk.salyk.kg [04:40:17]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [04:40:17]RasterBufferAndPrint [04:40:17]line Счет N : (3)200127 [04:40:17]line ИНН: 02508201610067 [04:40:17]line Контрольно-Кассовый Чек [04:40:17]line ПРОДАЖА [04:40:17]line Товар: 48743570 [04:40:17]line Сигареты Winston XStyle Blue [04:40:17]line 1.000 * 144.00 [04:40:17]line = 144.00 [04:40:17]line НДС 12% НСП 1% [04:40:17]line > о реализуемом товаре [04:40:17]line Товар: 48743587 [04:40:17]line Сигареты Winston XStyle Silver [04:40:17]line 2.000 * 144.00 [04:40:17]line = 288.00 [04:40:17]line НДС 12% НСП 1% [04:40:17]line > о реализуемом товаре [04:40:17]line ИТОГО: 432.00 [04:40:17]line НСП 1% : 3.82 [04:40:17]line НДС 12% : 45.87 [04:40:17]line Наличными: 0.00 [04:40:17]line Безнал.: 432.00 [04:40:17]line Место: АЗС № 87 "Партнер Нефть" [04:40:17]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [04:40:17]line СНО: Общий режим [04:40:17]line Чек 15 27.10.2024 04:40 [04:40:17]line Смена: 532 ФФД: 1.0 [04:40:17]line ЗНМ: 0300000084 [04:40:17]line РНМ: 0000000000091622 [04:40:17]line Версия ККМ: 001 [04:40:17]line Платежная система: Mbank [04:40:17]line ФМ: 0000000000874674 [04:40:17]line ФД: 60483 [04:40:17]line ФПД: 237164694518603 [04:40:17]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044015&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60483&fm=237164694518603&tin=02508201610067®Number=0000000000091622&sum=43200 [04:40:17]line 0 [04:40:17]written 0, free lines is 4095 [04:40:17]Connected sock=9 [04:40: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 36 37 34 8E 01 00 00 62 B7 86 01 F0 4B 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 2F C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 43 EC 00 00 35 04 06 00 D7 B3 35 5E BB 4B 64 FB D6 3A CD B4 87 9A [04:40:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 98 2E 47 00 99 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 36 37 34 10 04 04 00 43 EC 00 00 F4 03 04 00 18 6A 1D 67 B6 04 01 00 00 01 51 C7 02 14 B8 37 1D [04:40:17]CommunicateWithHost err = 0 [04:40:17]CheckOFDResponse [04:40:17]1017 (14) - 77093643461234 [04:40:17]1041 (16) - 0000000000874674 [04:40:17]1040 (4) - 60483 [04:40:17]1012 (4) - 26.10.2024 22:15 [04:40:17]1206 (1) - 0 [04:40:17]OFD Sender: Remove packet 60483 [04:40:17]ProducePacketName [04:40:17]name=ofd_packets/00060483 [04:40:17]NVStorageDeleteData [04:40:17]Write to MH i2c: 01 00 00 3D 01 3E [04:40:17]Write i2c OK [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: 01 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: 01 07 00 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 6C 0C BD [04:40:17]RasterBufferAndPrint [04:40:17]line [04:40:17]line [04:40:17]line [04:40:17]line [04:40:17]line [04:40:17]written 0, free lines is 3184 [04:40:17]MH_Cut [04:40:17]Write to MH i2c: D1 01 00 44 01 01 17 [04:40:17]Write i2c OK [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: D1 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: D1 01 00 [04:40:17]MH_I2C_Read... [04:40:17]Read from MH i2c: D1 01 00 44 01 00 16 [04:40:17]Write to MH i2c: 01 00 00 45 01 46 [04:40:17]Write i2c OK [04:40:17]MH_I2C_Read... [04:40:17]OFD Sender: No OFD packet to send [04:40:18]*** Cut start [04:40:18]*** Partial cut [04:40:18]*** CUTSNS_PIN = 1 [04:40:18]*** CUTSNS_PIN = 0 [04:40:18]*** Brake cut motor [04:40:19]Read from MH i2c: 01 [04:40:19]MH_I2C_Read... [04:40:19]*** Stop cut motor [04:40:19]*** Cut end [04:40:19]Read from MH i2c: 01 07 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [04:40:19]process_action close_receipt done [04:40:19]requested_data is exist [04:40:19]produce_requested_data [04:40:19]requested_item fm.sn is exist - process it [04:40:19]wFMCommunicate request_size=4 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 11 00 00 [04:40:19]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 17 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 18 [04:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:40:19]wFMCommunicate OK [04:40:19]requested_item fd.num is exist - process it [04:40:19]SAM_PROTO_GetFieldsCounters [04:40:19]wFMCommunicate request_size=4 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 13 00 00 [04:40:19]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 62 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 62 00 47 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 43 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [04:40: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 43 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:40:19]wFMCommunicate OK [04:40:19]SAM_PROTO_GetFieldsCounters done [04:40:19]requested_item shift.num is exist - process it [04:40:19]requested_item shift.opened is exist - process it [04:40:19]req_shift_opened [04:40:19]FM_GetShiftState [04:40:19]SAM_PROTO_GetShiftState [04:40:19]wFMCommunicate request_size=4 [04:40:19]MH_SAM_APDU [04:40:19]CAPDU: 80 13 01 00 [04:40:19]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [04:40:19]Write i2c OK [04:40:19]MH_I2C_Read... [04:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:19]Read from MH i2c: E2 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 0E 00 [04:40:19]MH_I2C_Read... [04:40:19]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 62 [04:40:19]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:40:19]wFMCommunicate OK [04:40:19]SAM_PROTO_GetShiftState done [04:40:19]FM_GetShiftState done [04:40:19]req_shift_opened done [04:40:19]requested_item shift.open_date is exist - process it [04:40:19]req_shift_open_date [04:40:19]req_shift_open_date done [04:40:19]produce_requested_data done [04:40:19]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60483,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [04:40:19]process_action_free close_receipt [04:40:19]json_value_free [04:40:19]json_value_free done [04:40:19]process_json_proto returns [04:40:19]Send response to host [04:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60483,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [04:40:19]free response buf [04:40:19]execute_script done [04:40:19]execute_script returns [04:40:19]free content buf [04:40:19]Sock 10.Close socket [04:40:19]Sock 10.Thread stoped [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:11]accept exits with 7 [04:43:11]New connection [04:43:11]New thread 3067215204 created [04:43:11]Thread 3067071844 joined [04:43:11]Waiting for new connection... [04:43:11] Sock 7.Parse request [04:43:11]Sock 7.Check first char [04:43:11]Sock 7.First char is OK [04:43:11]request: POST /json_proto HTTP/1.0 [04:43:11]Method: POST [04:43:11]URL: /json_proto [04:43:11]Method is POST - this is cgi request [04:43:11]url: /json_proto [04:43:11]query_string will be loaded in cgi processing [04:43:11]execute_cgi json_proto POST (null) [04:43:11]execute_cgi path=json_proto method=POST [04:43:11]POST find Content-Length [04:43:11]Host: 172.17.42.196:8080 [04:43:11]Content-Length: 915 [04:43:11]Content-Type: application/json [04:43:11] [04:43:11]POST finish read [04:43:11]Found Content-Length = 915 [04:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200128", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:11]execute_script... [04:43:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200128", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 455.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:11]POST & json_proto [04:43:11]process_json_proto [04:43:11]json parsed OK: [04:43:11]protocol is kg_v1.0 [04:43:11]action value=close_receipt [04:43:11]process_action close_receipt [04:43:11]cmd_close_receipt [04:43:11]MH_GetDate [04:43:11]Write to MH i2c: F0 00 00 49 01 39 [04:43:11]Write i2c OK [04:43:11]MH_I2C_Read... [04:43:11]Read from MH i2c: F0 [04:43:11]MH_I2C_Read... [04:43:11]Read from MH i2c: F0 09 00 [04:43:11]MH_I2C_Read... [04:43:11]Read from MH i2c: F0 09 00 49 01 00 DF C4 1D 67 FF C4 6B 64 FB [04:43:11]GetLastDocTimeStamp 1730004015 [04:43:11]current date 1730004191 [04:43:11]FM_GetShiftState [04:43:11]SAM_PROTO_GetShiftState [04:43:11]wFMCommunicate request_size=4 [04:43:11]MH_SAM_APDU [04:43:11]CAPDU: 80 13 01 00 [04:43:11]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [04:43:11]Write i2c OK [04:43:11]MH_I2C_Read... [04:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:11]Read from MH i2c: E2 [04:43:11]MH_I2C_Read... [04:43:11]Read from MH i2c: E2 0E 00 [04:43:11]MH_I2C_Read... [04:43:11]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 64 [04:43:11]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:43:11]wFMCommunicate OK [04:43:11]SAM_PROTO_GetShiftState done [04:43:11]FM_GetShiftState done [04:43:11]opened in 1729989505 [04:43:11]opened+sec_in_day 1730075905 [04:43:11]quantity*price = 33000 [04:43:11]sum+1 = 33001 [04:43:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 455.00 НСП 1% : 4.03 НДС 12% : 48.31 Наличными: 455.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 16 27.10.2024 04:43 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60484 ФПД: 242069216138621 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044311&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60484&fm=242069216138621&tin=02508201610067®Number=0000000000091622&sum=45500 0 [04:43:12]StoreToDocumentArchive [04:43:12]shift 532 fd 60484 [04:43:12]save to /storage/0532/doc_00060484 [04:43:12]save last doc name /storage/0532/doc_00060484 to /storage/kkm_last_doc_name [04:43:12]save OK [04:43:12]Clear old archive folders... [04:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=381 [04:43:12]tlvbuf is 0031ABC0 [04:43:12]SAM_PROTO_ClearQueue [04:43:12]wFMCommunicate request_size=4 [04:43:12]MH_SAM_APDU [04:43:12]CAPDU: 80 09 00 00 [04:43:12]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [04:43:12]Write i2c OK [04:43:12]MH_I2C_Read... [04:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:12]Read from MH i2c: E2 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [04:43:12]RAPDU: 90 00 [04:43:12]wFMCommunicate OK [04:43:12]SAM_PROTO_ClearQueue done [04:43:12]KKMCreateOFDPacket [04:43:12]OFDProtocolAddRootSTLVToBuf [04:43:12]FM_MakeSignedData [04:43:12]FM_MakeSignedData [04:43:12]SAM_PROTO_SignData [04:43:12]wFMCommunicate request_size=4 [04:43:12]MH_SAM_APDU [04:43:12]CAPDU: 80 0D 01 02 [04:43:12]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [04:43:12]Write i2c OK [04:43:12]MH_I2C_Read... [04:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:12]Read from MH i2c: E2 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [04:43:12]RAPDU: 90 00 [04:43:12]wFMCommunicate OK [04:43:12]wFMCommunicate request_size=255 [04:43:12]MH_SAM_APDU [04:43:12]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 [04:43:12]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 DF [04:43:12]Write i2c OK [04:43:12]MH_I2C_Read... [04:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:12]Read from MH i2c: E2 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [04:43:12]RAPDU: 90 00 [04:43:12]wFMCommunicate OK [04:43:12]wFMCommunicate request_size=140 [04:43:12]MH_SAM_APDU [04:43:12]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DF C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 44 EC 00 00 35 04 06 00 DC 29 21 A3 95 7D [04:43:12]Write to MH i2c: E2 8F 00 5A 01 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DF C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 44 EC 00 00 35 04 06 00 DC 29 21 A3 95 7D 00 00 C5 [04:43:12]Write i2c OK [04:43:12]MH_I2C_Read... [04:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:12]Read from MH i2c: E2 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [04:43:12]RAPDU: 90 00 [04:43:12]wFMCommunicate OK [04:43:12]wFMCommunicate request_size=4 [04:43:12]MH_SAM_APDU [04:43:12]CAPDU: 80 0D 03 02 [04:43:12]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [04:43:12]Write i2c OK [04:43:12]MH_I2C_Read... [04:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:12]Read from MH i2c: E2 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 0B 00 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 0B 00 5B 01 00 75 2B 2D 81 CC BA 40 DB 90 00 C7 [04:43:12]RAPDU: 75 2B 2D 81 CC BA 40 DB 90 00 [04:43:12]wFMCommunicate OK [04:43:12]SAM_PROTO_SignData done [04:43:12]FM_MakeSignedData done [04:43:12]CreateOFDProtocolMessage [04:43:12]wFMCommunicate request_size=4 [04:43:12]MH_SAM_APDU [04:43:12]CAPDU: 80 11 00 00 [04:43:12]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [04:43:12]Write i2c OK [04:43:12]MH_I2C_Read... [04:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:12]Read from MH i2c: E2 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 17 00 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2E [04:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:43:12]wFMCommunicate OK [04:43:12]CreateOFDProtocolMessage done [04:43:12]OFDSenderStorePacket 60484 [04:43:12]StoreOFDPacket docnum=60484 [04:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 91 01 00 00 F6 30 89 01 D0 C9 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DF C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 44 EC 00 00 35 04 06 00 DC 29 21 A3 95 7D 75 2B 2D 81 CC BA 40 DB [04:43:12]CheckFolder [04:43:12]dirname=/storage/ofd_packets [04:43:12]CheckFolder done [04:43:12]ProducePacketName [04:43:12]name=ofd_packets/00060484 [04:43:12]NVStorageSaveData ofd_packets/00060484 [04:43:12]File name is /storage/ofd_packets/00060484 [04:43:12]Write 431 bytes [04:43:12]NVStorageSaveData done [04:43:12]OFDSenderStorePacket done [04:43:12]KKMCreateOFDPacket done [04:43:12]NVStorageSaveData kkm_last_timestamp [04:43:12]File name is /storage/kkm_last_timestamp [04:43:12]Write 4 bytes [04:43:12]NVStorageSaveData done [04:43:12]ExternCall_PrintAddStr [04:43:12]wPrintStart [04:43:12]Write to MH i2c: 01 00 00 5D 01 5E [04:43:12]Write i2c OK [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: 01 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: 01 07 00 [04:43:12]MH_I2C_Read... [04:43:12]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [04:43:12]RasterBufferAndPrint [04:43:12]line Счет N : (3)200128 [04:43:12]line ИНН: 02508201610067 [04:43:12]line Контрольно-Кассовый Чек [04:43:12]line ПРОДАЖА [04:43:12]line Товар: 4700001060169 [04:43:12]line Коньяк Бишкек 0,2л [04:43:12]line 1.000 * 330.00 [04:43:12]line = 330.00 [04:43:12]line НДС 12% НСП 1% [04:43:13]line > о реализуемом товаре [04:43:13]line Товар: 5449000054227 [04:43:13]line Напиток Кока-Кола 1л [04:43:13]line 1.000 * 125.00 [04:43:13]line = 125.00 [04:43:13]line НДС 12% НСП 1% [04:43:13]line > о реализуемом товаре [04:43:13]line ИТОГО: 455.00 [04:43:13]line НСП 1% : 4.03 [04:43:13]line НДС 12% : 48.31 [04:43:13]line Наличными: 455.00 [04:43:13]line Безнал.: 0.00 [04:43:13]line Место: АЗС № 87 "Партнер Нефть" [04:43:13]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [04:43:13]line СНО: Общий режим [04:43:13]line Чек 16 27.10.2024 04:43 [04:43:13]line Смена: 532 ФФД: 1.0 [04:43:13]line ЗНМ: 0300000084 [04:43:13]line РНМ: 0000000000091622 [04:43:13]line Версия ККМ: 001 [04:43:13]line ФМ: 0000000000874674 [04:43:13]line ФД: 60484 [04:43:13]line ФПД: 242069216138621 [04:43:13]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044311&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60484&fm=242069216138621&tin=02508201610067®Number=0000000000091622&sum=45500 [04:43:13]line 0 [04:43:13]OFD Sender: Processing packet 60484 [packets to send 30, broken 29] [04:43:13]ProducePacketName [04:43:13]name=ofd_packets/00060484 [04:43:13]OFD Sender: To server: pG, [04:43:13]CommunicateWithHost lk.salyk.kg:30040 [04:43:13]ConnectInit lk.salyk.kg [04:43:13]written 0, free lines is 4095 [04:43:13]Connected sock=10 [04:43: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 36 37 34 91 01 00 00 F6 30 89 01 D0 C9 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC B1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 12 00 00 00 00 07 04 06 00 BC B1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DF C4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 44 EC 00 00 35 04 06 00 DC 29 21 A3 95 7D 75 2B 2D 81 CC BA 40 DB [04:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 7D BA 47 00 CF 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 44 EC 00 00 F4 03 04 00 C8 6A 1D 67 B6 04 01 00 00 3F F3 E1 28 22 67 05 5F [04:43:13]CommunicateWithHost err = 0 [04:43:13]CheckOFDResponse [04:43:13]1017 (14) - 77093643461234 [04:43:13]1041 (16) - 0000000000874674 [04:43:13]1040 (4) - 60484 [04:43:13]1012 (4) - 26.10.2024 22:18 [04:43:13]1206 (1) - 0 [04:43:13]OFD Sender: Remove packet 60484 [04:43:13]ProducePacketName [04:43:13]name=ofd_packets/00060484 [04:43:13]NVStorageDeleteData [04:43:13]Write to MH i2c: 01 00 00 8B 01 8C [04:43:13]Write i2c OK [04:43:13]MH_I2C_Read... [04:43:13]Read from MH i2c: 01 [04:43:13]MH_I2C_Read... [04:43:13]Read from MH i2c: 01 07 00 [04:43:13]MH_I2C_Read... [04:43:13]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 AB 0C 4A [04:43:13]RasterBufferAndPrint [04:43:13]line [04:43:13]line [04:43:13]line [04:43:13]line [04:43:13]line [04:43:13]written 0, free lines is 3248 [04:43:13]MH_Cut [04:43:13]Write to MH i2c: D1 01 00 92 01 01 65 [04:43:13]Write i2c OK [04:43:13]MH_I2C_Read... [04:43:13]Read from MH i2c: D1 [04:43:13]MH_I2C_Read... [04:43:13]Read from MH i2c: D1 01 00 [04:43:13]MH_I2C_Read... [04:43:13]Read from MH i2c: D1 01 00 92 01 00 64 [04:43:13]Write to MH i2c: 01 00 00 93 01 94 [04:43:13]Write i2c OK [04:43:13]MH_I2C_Read... [04:43:14]OFD Sender: No OFD packet to send [04:43:14]*** Cut start [04:43:14]*** Partial cut [04:43:14]*** CUTSNS_PIN = 1 [04:43:14]*** CUTSNS_PIN = 0 [04:43:14]*** Brake cut motor [04:43:15]Read from MH i2c: 01 [04:43:15]MH_I2C_Read... [04:43:15]*** Stop cut motor [04:43:15]*** Cut end [04:43:15]Read from MH i2c: 01 07 00 [04:43:15]MH_I2C_Read... [04:43:15]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [04:43:15]process_action close_receipt done [04:43:15]requested_data is exist [04:43:15]produce_requested_data [04:43:15]requested_item fm.sn is exist - process it [04:43:15]wFMCommunicate request_size=4 [04:43:15]MH_SAM_APDU [04:43:15]CAPDU: 80 11 00 00 [04:43:15]Write to MH i2c: E2 08 00 94 01 80 11 00 00 00 00 00 00 0F [04:43:15]Write i2c OK [04:43:15]MH_I2C_Read... [04:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:15]Read from MH i2c: E2 [04:43:15]MH_I2C_Read... [04:43:15]Read from MH i2c: E2 17 00 [04:43:15]MH_I2C_Read... [04:43:15]Read from MH i2c: E2 17 00 94 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 66 [04:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:43:15]wFMCommunicate OK [04:43:15]requested_item fd.num is exist - process it [04:43:15]SAM_PROTO_GetFieldsCounters [04:43:15]wFMCommunicate request_size=4 [04:43:15]MH_SAM_APDU [04:43:15]CAPDU: 80 13 00 00 [04:43:15]Write to MH i2c: E2 08 00 95 01 80 13 00 00 00 00 00 00 12 [04:43:15]Write i2c OK [04:43:15]MH_I2C_Read... [04:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:15]Read from MH i2c: E2 [04:43:15]MH_I2C_Read... [04:43:15]Read from MH i2c: E2 62 00 [04:43:15]MH_I2C_Read... [04:43:15]Read from MH i2c: E2 62 00 95 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 44 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [04:43: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 44 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:15]wFMCommunicate OK [04:43:15]SAM_PROTO_GetFieldsCounters done [04:43:15]requested_item shift.num is exist - process it [04:43:15]requested_item shift.opened is exist - process it [04:43:15]req_shift_opened [04:43:15]FM_GetShiftState [04:43:15]SAM_PROTO_GetShiftState [04:43:15]wFMCommunicate request_size=4 [04:43:15]MH_SAM_APDU [04:43:15]CAPDU: 80 13 01 00 [04:43:15]Write to MH i2c: E2 08 00 96 01 80 13 01 00 00 00 00 00 14 [04:43:15]Write i2c OK [04:43:15]MH_I2C_Read... [04:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:15]Read from MH i2c: E2 [04:43:15]MH_I2C_Read... [04:43:15]Read from MH i2c: E2 0E 00 [04:43:15]MH_I2C_Read... [04:43:15]Read from MH i2c: E2 0E 00 96 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 B0 [04:43:15]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:43:15]wFMCommunicate OK [04:43:15]SAM_PROTO_GetShiftState done [04:43:15]FM_GetShiftState done [04:43:15]req_shift_opened done [04:43:15]requested_item shift.open_date is exist - process it [04:43:15]req_shift_open_date [04:43:15]req_shift_open_date done [04:43:15]produce_requested_data done [04:43:15]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60484,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [04:43:15]process_action_free close_receipt [04:43:15]json_value_free [04:43:15]json_value_free done [04:43:15]process_json_proto returns [04:43:15]Send response to host [04:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60484,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [04:43:15]free response buf [04:43:15]execute_script done [04:43:15]execute_script returns [04:43:15]free content buf [04:43:15]Sock 7.Close socket [04:43:15]Sock 7.Thread stoped [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:51]accept exits with 9 [04:45:51]New connection [04:45:51]New thread 3067071844 created [04:45:51]Thread 3067215204 joined [04:45:51]Waiting for new connection... [04:45:51] Sock 9.Parse request [04:45:51]Sock 9.Check first char [04:45:51]Sock 9.First char is OK [04:45:51]request: POST /json_proto HTTP/1.0 [04:45:51]Method: POST [04:45:51]URL: /json_proto [04:45:51]Method is POST - this is cgi request [04:45:51]url: /json_proto [04:45:51]query_string will be loaded in cgi processing [04:45:51]execute_cgi json_proto POST (null) [04:45:51]execute_cgi path=json_proto method=POST [04:45:51]POST find Content-Length [04:45:51]Host: 172.17.42.196:8080 [04:45:51]Content-Length: 750 [04:45:51]Content-Type: application/json [04:45:51] [04:45:51]POST finish read [04:45:51]Found Content-Length = 750 [04:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200129", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:51]execute_script... [04:45:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200129", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:51]POST & json_proto [04:45:51]process_json_proto [04:45:51]json parsed OK: [04:45:51]protocol is kg_v1.0 [04:45:51]action value=close_receipt [04:45:51]process_action close_receipt [04:45:51]cmd_close_receipt [04:45:51]MH_GetDate [04:45:51]Write to MH i2c: F0 00 00 97 01 87 [04:45:51]Write i2c OK [04:45:51]MH_I2C_Read... [04:45:51]Read from MH i2c: F0 [04:45:51]MH_I2C_Read... [04:45:51]Read from MH i2c: F0 09 00 [04:45:51]MH_I2C_Read... [04:45:51]Read from MH i2c: F0 09 00 97 01 00 7F C5 1D 67 FF C4 6B 64 EA [04:45:51]GetLastDocTimeStamp 1730004191 [04:45:51]current date 1730004351 [04:45:51]FM_GetShiftState [04:45:51]SAM_PROTO_GetShiftState [04:45:51]wFMCommunicate request_size=4 [04:45:51]MH_SAM_APDU [04:45:51]CAPDU: 80 13 01 00 [04:45:51]Write to MH i2c: E2 08 00 98 01 80 13 01 00 00 00 00 00 16 [04:45:51]Write i2c OK [04:45:51]MH_I2C_Read... [04:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:51]Read from MH i2c: E2 [04:45:51]MH_I2C_Read... [04:45:51]Read from MH i2c: E2 0E 00 [04:45:51]MH_I2C_Read... [04:45:51]Read from MH i2c: E2 0E 00 98 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 B2 [04:45:51]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:45:51]wFMCommunicate OK [04:45:51]SAM_PROTO_GetShiftState done [04:45:51]FM_GetShiftState done [04:45:51]opened in 1729989505 [04:45:51]opened+sec_in_day 1730075905 [04:45:51]quantity*price = 14400 [04:45:51]sum+1 = 14401 [04:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 17 27.10.2024 04:45 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60485 ФПД: 192577755342338 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044551&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60485&fm=192577755342338&tin=02508201610067®Number=0000000000091622&sum=14400 0 [04:45:52]StoreToDocumentArchive [04:45:52]shift 532 fd 60485 [04:45:52]save to /storage/0532/doc_00060485 [04:45:52]save last doc name /storage/0532/doc_00060485 to /storage/kkm_last_doc_name [04:45:52]save OK [04:45:52]Clear old archive folders... [04:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=275 [04:45:52]tlvbuf is 0030E210 [04:45:52]SAM_PROTO_ClearQueue [04:45:52]wFMCommunicate request_size=4 [04:45:52]MH_SAM_APDU [04:45:52]CAPDU: 80 09 00 00 [04:45:52]Write to MH i2c: E2 08 00 A5 01 80 09 00 00 00 00 00 00 18 [04:45:52]Write i2c OK [04:45:52]MH_I2C_Read... [04:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:45:52]Read from MH i2c: E2 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [04:45:52]RAPDU: 90 00 [04:45:52]wFMCommunicate OK [04:45:52]SAM_PROTO_ClearQueue done [04:45:52]KKMCreateOFDPacket [04:45:52]OFDProtocolAddRootSTLVToBuf [04:45:52]FM_MakeSignedData [04:45:52]FM_MakeSignedData [04:45:52]SAM_PROTO_SignData [04:45:52]wFMCommunicate request_size=4 [04:45:52]MH_SAM_APDU [04:45:52]CAPDU: 80 0D 01 02 [04:45:52]Write to MH i2c: E2 08 00 A6 01 80 0D 01 02 00 00 00 00 20 [04:45:52]Write i2c OK [04:45:52]MH_I2C_Read... [04:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:45:52]Read from MH i2c: E2 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [04:45:52]RAPDU: 90 00 [04:45:52]wFMCommunicate OK [04:45:52]wFMCommunicate request_size=255 [04:45:52]MH_SAM_APDU [04:45:52]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [04:45:52]Write to MH i2c: E2 02 01 A7 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 0F [04:45:52]Write i2c OK [04:45:52]MH_I2C_Read... [04:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:52]Read from MH i2c: E2 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [04:45:52]RAPDU: 90 00 [04:45:52]wFMCommunicate OK [04:45:52]wFMCommunicate request_size=34 [04:45:52]MH_SAM_APDU [04:45:52]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 45 EC 00 00 35 04 06 00 AF 26 00 B2 E6 02 [04:45:52]Write to MH i2c: E2 25 00 A8 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 45 EC 00 00 35 04 06 00 AF 26 00 B2 E6 02 00 00 88 [04:45:52]Write i2c OK [04:45:52]MH_I2C_Read... [04:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:52]Read from MH i2c: E2 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [04:45:52]RAPDU: 90 00 [04:45:52]wFMCommunicate OK [04:45:52]wFMCommunicate request_size=4 [04:45:52]MH_SAM_APDU [04:45:52]CAPDU: 80 0D 03 02 [04:45:52]Write to MH i2c: E2 08 00 A9 01 80 0D 03 02 00 00 00 00 25 [04:45:52]Write i2c OK [04:45:52]MH_I2C_Read... [04:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:45:52]Read from MH i2c: E2 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 0B 00 [04:45:52]MH_I2C_Read... [04:45:52]Read from MH i2c: E2 0B 00 A9 01 00 13 EE CE 06 E7 65 05 43 90 00 8F [04:45:52]RAPDU: 13 EE CE 06 E7 65 05 43 90 00 [04:45:52]wFMCommunicate OK [04:45:52]SAM_PROTO_SignData done [04:45:52]FM_MakeSignedData done [04:45:52]CreateOFDProtocolMessage [04:45:52]wFMCommunicate request_size=4 [04:45:52]MH_SAM_APDU [04:45:52]CAPDU: 80 11 00 00 [04:45:52]Write to MH i2c: E2 08 00 AA 01 80 11 00 00 00 00 00 00 25 [04:45:52]Write i2c OK [04:45:52]MH_I2C_Read... [04:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:53]Read from MH i2c: E2 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: E2 17 00 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: E2 17 00 AA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 7C [04:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:45:53]wFMCommunicate OK [04:45:53]CreateOFDProtocolMessage done [04:45:53]OFDSenderStorePacket 60485 [04:45:53]StoreOFDPacket docnum=60485 [04:45:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 D2 DC 1F 01 04 BF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 45 EC 00 00 35 04 06 00 AF 26 00 B2 E6 02 13 EE CE 06 E7 65 05 43 [04:45:53]CheckFolder [04:45:53]dirname=/storage/ofd_packets [04:45:53]CheckFolder done [04:45:53]ProducePacketName [04:45:53]name=ofd_packets/00060485 [04:45:53]NVStorageSaveData ofd_packets/00060485 [04:45:53]File name is /storage/ofd_packets/00060485 [04:45:53]Write 325 bytes [04:45:53]NVStorageSaveData done [04:45:53]OFDSenderStorePacket done [04:45:53]KKMCreateOFDPacket done [04:45:53]NVStorageSaveData kkm_last_timestamp [04:45:53]File name is /storage/kkm_last_timestamp [04:45:53]Write 4 bytes [04:45:53]NVStorageSaveData done [04:45:53]ExternCall_PrintAddStr [04:45:53]wPrintStart [04:45:53]Write to MH i2c: 01 00 00 AB 01 AC [04:45:53]Write i2c OK [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: 01 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: 01 07 00 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: 01 07 00 AB 01 00 00 00 00 00 FF 0F C1 [04:45:53]RasterBufferAndPrint [04:45:53]line Счет N : (3)200129 [04:45:53]line ИНН: 02508201610067 [04:45:53]line Контрольно-Кассовый Чек [04:45:53]line ПРОДАЖА [04:45:53]line Товар: 48743587 [04:45:53]line Сигареты Winston XStyle Silver [04:45:53]line 1.000 * 144.00 [04:45:53]line = 144.00 [04:45:53]line НДС 12% НСП 1% [04:45:53]line > о реализуемом товаре [04:45:53]line ИТОГО: 144.00 [04:45:53]line НСП 1% : 1.27 [04:45:53]line НДС 12% : 15.29 [04:45:53]line Наличными: 0.00 [04:45:53]line Безнал.: 144.00 [04:45:53]line Место: АЗС № 87 "Партнер Нефть" [04:45:53]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [04:45:53]line СНО: Общий режим [04:45:53]line Чек 17 27.10.2024 04:45 [04:45:53]line Смена: 532 ФФД: 1.0 [04:45:53]line ЗНМ: 0300000084 [04:45:53]line РНМ: 0000000000091622 [04:45:53]line Версия ККМ: 001 [04:45:53]line Платежная система: Mbank [04:45:53]line ФМ: 0000000000874674 [04:45:53]line ФД: 60485 [04:45:53]line ФПД: 192577755342338 [04:45:53]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044551&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60485&fm=192577755342338&tin=02508201610067®Number=0000000000091622&sum=14400 [04:45:53]OFD Sender: Processing packet 60485 [packets to send 30, broken 29] [04:45:53]ProducePacketName [04:45:53]name=ofd_packets/00060485 [04:45:53]OFD Sender: To server: pG, [04:45:53]CommunicateWithHost lk.salyk.kg:30040 [04:45:53]ConnectInit lk.salyk.kg [04:45:53]line 0 [04:45:53]written 0, free lines is 4095 [04:45:53]Connected sock=10 [04:45: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 36 37 34 27 01 00 00 D2 DC 1F 01 04 BF 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 7F C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 45 EC 00 00 35 04 06 00 AF 26 00 B2 E6 02 13 EE CE 06 E7 65 05 43 [04:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 A5 FE 47 00 E7 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 45 EC 00 00 F4 03 04 00 68 6B 1D 67 B6 04 01 00 00 F3 B7 B2 A1 1A 08 CD 10 [04:45:53]CommunicateWithHost err = 0 [04:45:53]CheckOFDResponse [04:45:53]1017 (14) - 77093643461234 [04:45:53]1041 (16) - 0000000000874674 [04:45:53]1040 (4) - 60485 [04:45:53]1012 (4) - 26.10.2024 22:21 [04:45:53]1206 (1) - 0 [04:45:53]OFD Sender: Remove packet 60485 [04:45:53]ProducePacketName [04:45:53]name=ofd_packets/00060485 [04:45:53]NVStorageDeleteData [04:45:53]Write to MH i2c: 01 00 00 D5 01 D6 [04:45:53]Write i2c OK [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: 01 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: 01 07 00 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 D3 0C BC [04:45:53]RasterBufferAndPrint [04:45:53]line [04:45:53]line [04:45:53]line [04:45:53]line [04:45:53]line [04:45:53]written 0, free lines is 3289 [04:45:53]MH_Cut [04:45:53]Write to MH i2c: D1 01 00 DC 01 01 AF [04:45:53]Write i2c OK [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: D1 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: D1 01 00 [04:45:53]MH_I2C_Read... [04:45:53]Read from MH i2c: D1 01 00 DC 01 00 AE [04:45:53]Write to MH i2c: 01 00 00 DD 01 DE [04:45:53]Write i2c OK [04:45:53]MH_I2C_Read... [04:45:54]OFD Sender: No OFD packet to send [04:45:54]*** Cut start [04:45:54]*** Partial cut [04:45:54]*** CUTSNS_PIN = 1 [04:45:54]*** CUTSNS_PIN = 0 [04:45:54]*** Brake cut motor [04:45:55]Read from MH i2c: 01 [04:45:55]MH_I2C_Read... [04:45:55]*** Stop cut motor [04:45:55]*** Cut end [04:45:55]Read from MH i2c: 01 07 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 FF 0F F3 [04:45:55]process_action close_receipt done [04:45:55]requested_data is exist [04:45:55]produce_requested_data [04:45:55]requested_item fm.sn is exist - process it [04:45:55]wFMCommunicate request_size=4 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 11 00 00 [04:45:55]Write to MH i2c: E2 08 00 DE 01 80 11 00 00 00 00 00 00 59 [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 17 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 17 00 DE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B0 [04:45:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:45:55]wFMCommunicate OK [04:45:55]requested_item fd.num is exist - process it [04:45:55]SAM_PROTO_GetFieldsCounters [04:45:55]wFMCommunicate request_size=4 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 13 00 00 [04:45:55]Write to MH i2c: E2 08 00 DF 01 80 13 00 00 00 00 00 00 5C [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 62 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 62 00 DF 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 45 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [04:45: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 45 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:45:55]wFMCommunicate OK [04:45:55]SAM_PROTO_GetFieldsCounters done [04:45:55]requested_item shift.num is exist - process it [04:45:55]requested_item shift.opened is exist - process it [04:45:55]req_shift_opened [04:45:55]FM_GetShiftState [04:45:55]SAM_PROTO_GetShiftState [04:45:55]wFMCommunicate request_size=4 [04:45:55]MH_SAM_APDU [04:45:55]CAPDU: 80 13 01 00 [04:45:55]Write to MH i2c: E2 08 00 E0 01 80 13 01 00 00 00 00 00 5E [04:45:55]Write i2c OK [04:45:55]MH_I2C_Read... [04:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:55]Read from MH i2c: E2 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 0E 00 [04:45:55]MH_I2C_Read... [04:45:55]Read from MH i2c: E2 0E 00 E0 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 FA [04:45:55]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:45:55]wFMCommunicate OK [04:45:55]SAM_PROTO_GetShiftState done [04:45:55]FM_GetShiftState done [04:45:55]req_shift_opened done [04:45:55]requested_item shift.open_date is exist - process it [04:45:55]req_shift_open_date [04:45:55]req_shift_open_date done [04:45:55]produce_requested_data done [04:45:55]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60485,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [04:45:55]process_action_free close_receipt [04:45:55]json_value_free [04:45:55]json_value_free done [04:45:55]process_json_proto returns [04:45:55]Send response to host [04:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60485,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [04:45:55]free response buf [04:45:55]execute_script done [04:45:55]execute_script returns [04:45:55]free content buf [04:45:55]Sock 9.Close socket [04:45:55]Sock 9.Thread stoped [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:15]accept exits with 7 [04:47:15]New connection [04:47:15]New thread 3067215204 created [04:47:15]Thread 3067071844 joined [04:47:15]Waiting for new connection... [04:47:15] Sock 7.Parse request [04:47:15]Sock 7.Check first char [04:47:15]Sock 7.First char is OK [04:47:15]request: POST /json_proto HTTP/1.0 [04:47:15]Method: POST [04:47:15]URL: /json_proto [04:47:15]Method is POST - this is cgi request [04:47:15]url: /json_proto [04:47:15]query_string will be loaded in cgi processing [04:47:15]execute_cgi json_proto POST (null) [04:47:15]execute_cgi path=json_proto method=POST [04:47:15]POST find Content-Length [04:47:15]Host: 172.17.42.196:8080 [04:47:15]Content-Length: 632 [04:47:15]Content-Type: application/json [04:47:15] [04:47:15]POST finish read [04:47:15]Found Content-Length = 632 [04:47:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200130", "tax_sys" : 0, "items" : [ { "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:15]execute_script... [04:47:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200130", "tax_sys" : 0, "items" : [ { "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 25.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:15]POST & json_proto [04:47:15]process_json_proto [04:47:15]json parsed OK: [04:47:15]protocol is kg_v1.0 [04:47:15]action value=close_receipt [04:47:15]process_action close_receipt [04:47:15]cmd_close_receipt [04:47:15]MH_GetDate [04:47:15]Write to MH i2c: F0 00 00 E1 01 D1 [04:47:15]Write i2c OK [04:47:15]MH_I2C_Read... [04:47:15]Read from MH i2c: F0 [04:47:15]MH_I2C_Read... [04:47:15]Read from MH i2c: F0 09 00 [04:47:15]MH_I2C_Read... [04:47:15]Read from MH i2c: F0 09 00 E1 01 00 D4 C5 1D 67 FF C4 6B 64 89 [04:47:15]GetLastDocTimeStamp 1730004351 [04:47:15]current date 1730004436 [04:47:15]FM_GetShiftState [04:47:15]SAM_PROTO_GetShiftState [04:47:15]wFMCommunicate request_size=4 [04:47:15]MH_SAM_APDU [04:47:15]CAPDU: 80 13 01 00 [04:47:15]Write to MH i2c: E2 08 00 E2 01 80 13 01 00 00 00 00 00 60 [04:47:15]Write i2c OK [04:47:15]MH_I2C_Read... [04:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:15]Read from MH i2c: E2 [04:47:15]MH_I2C_Read... [04:47:15]Read from MH i2c: E2 0E 00 [04:47:15]MH_I2C_Read... [04:47:15]Read from MH i2c: E2 0E 00 E2 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 FC [04:47:15]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:47:15]wFMCommunicate OK [04:47:15]SAM_PROTO_GetShiftState done [04:47:15]FM_GetShiftState done [04:47:15]opened in 1729989505 [04:47:15]opened+sec_in_day 1730075905 [04:47:15]quantity*price = 2500 [04:47:15]sum+1 = 2501 [04:47:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 25.00 НСП 1% : 0.22 НДС 12% : 2.65 Наличными: 25.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 18 27.10.2024 04:47 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60486 ФПД: 122779645021438 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044716&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60486&fm=122779645021438&tin=02508201610067®Number=0000000000091622&sum=2500 0 [04:47:16]StoreToDocumentArchive [04:47:16]shift 532 fd 60486 [04:47:16]save to /storage/0532/doc_00060486 [04:47:16]save last doc name /storage/0532/doc_00060486 to /storage/kkm_last_doc_name [04:47:16]save OK [04:47:16]Clear old archive folders... [04:47:16]ProcessDocumentItem done err = 0, tmpTLVsize=279 [04:47:16]tlvbuf is 002DE010 [04:47:16]SAM_PROTO_ClearQueue [04:47:16]wFMCommunicate request_size=4 [04:47:16]MH_SAM_APDU [04:47:16]CAPDU: 80 09 00 00 [04:47:16]Write to MH i2c: E2 08 00 EF 01 80 09 00 00 00 00 00 00 62 [04:47:16]Write i2c OK [04:47:16]MH_I2C_Read... [04:47:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:47:17]Read from MH i2c: E2 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [04:47:17]RAPDU: 90 00 [04:47:17]wFMCommunicate OK [04:47:17]SAM_PROTO_ClearQueue done [04:47:17]KKMCreateOFDPacket [04:47:17]OFDProtocolAddRootSTLVToBuf [04:47:17]FM_MakeSignedData [04:47:17]FM_MakeSignedData [04:47:17]SAM_PROTO_SignData [04:47:17]wFMCommunicate request_size=4 [04:47:17]MH_SAM_APDU [04:47:17]CAPDU: 80 0D 01 02 [04:47:17]Write to MH i2c: E2 08 00 F0 01 80 0D 01 02 00 00 00 00 6A [04:47:17]Write i2c OK [04:47:17]MH_I2C_Read... [04:47:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:47:17]Read from MH i2c: E2 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [04:47:17]RAPDU: 90 00 [04:47:17]wFMCommunicate OK [04:47:17]wFMCommunicate request_size=255 [04:47:17]MH_SAM_APDU [04:47:17]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D4 C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 [04:47:17]Write to MH i2c: E2 02 01 F1 01 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D4 C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 00 00 8C [04:47:17]Write i2c OK [04:47:17]MH_I2C_Read... [04:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:17]Read from MH i2c: E2 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [04:47:17]RAPDU: 90 00 [04:47:17]wFMCommunicate OK [04:47:17]wFMCommunicate request_size=38 [04:47:17]MH_SAM_APDU [04:47:17]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 46 EC 00 00 35 04 06 00 6F AA DD 20 8C FE [04:47:17]Write to MH i2c: E2 29 00 F2 01 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 46 EC 00 00 35 04 06 00 6F AA DD 20 8C FE 00 00 CC [04:47:17]Write i2c OK [04:47:17]MH_I2C_Read... [04:47:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:17]Read from MH i2c: E2 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [04:47:17]RAPDU: 90 00 [04:47:17]wFMCommunicate OK [04:47:17]wFMCommunicate request_size=4 [04:47:17]MH_SAM_APDU [04:47:17]CAPDU: 80 0D 03 02 [04:47:17]Write to MH i2c: E2 08 00 F3 01 80 0D 03 02 00 00 00 00 6F [04:47:17]Write i2c OK [04:47:17]MH_I2C_Read... [04:47:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:47:17]Read from MH i2c: E2 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 0B 00 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 0B 00 F3 01 00 E7 B3 3C 25 E2 85 46 D9 90 00 F1 [04:47:17]RAPDU: E7 B3 3C 25 E2 85 46 D9 90 00 [04:47:17]wFMCommunicate OK [04:47:17]SAM_PROTO_SignData done [04:47:17]FM_MakeSignedData done [04:47:17]CreateOFDProtocolMessage [04:47:17]wFMCommunicate request_size=4 [04:47:17]MH_SAM_APDU [04:47:17]CAPDU: 80 11 00 00 [04:47:17]Write to MH i2c: E2 08 00 F4 01 80 11 00 00 00 00 00 00 6F [04:47:17]Write i2c OK [04:47:17]MH_I2C_Read... [04:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:17]Read from MH i2c: E2 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 17 00 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: E2 17 00 F4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C6 [04:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:47:17]wFMCommunicate OK [04:47:17]CreateOFDProtocolMessage done [04:47:17]OFDSenderStorePacket 60486 [04:47:17]StoreOFDPacket docnum=60486 [04:47:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2B 01 00 00 FC 5D 23 01 0B CA 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D4 C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 46 EC 00 00 35 04 06 00 6F AA DD 20 8C FE E7 B3 3C 25 E2 85 46 D9 [04:47:17]CheckFolder [04:47:17]dirname=/storage/ofd_packets [04:47:17]CheckFolder done [04:47:17]ProducePacketName [04:47:17]name=ofd_packets/00060486 [04:47:17]NVStorageSaveData ofd_packets/00060486 [04:47:17]File name is /storage/ofd_packets/00060486 [04:47:17]Write 329 bytes [04:47:17]NVStorageSaveData done [04:47:17]OFDSenderStorePacket done [04:47:17]KKMCreateOFDPacket done [04:47:17]NVStorageSaveData kkm_last_timestamp [04:47:17]File name is /storage/kkm_last_timestamp [04:47:17]Write 4 bytes [04:47:17]NVStorageSaveData done [04:47:17]ExternCall_PrintAddStr [04:47:17]wPrintStart [04:47:17]Write to MH i2c: 01 00 00 F5 01 F6 [04:47:17]Write i2c OK [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: 01 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: 01 07 00 [04:47:17]MH_I2C_Read... [04:47:17]Read from MH i2c: 01 07 00 F5 01 00 00 00 00 00 FF 0F 0B [04:47:17]RasterBufferAndPrint [04:47:17]line Счет N : (3)200130 [04:47:17]line ИНН: 02508201610067 [04:47:17]line Контрольно-Кассовый Чек [04:47:17]line ПРОДАЖА [04:47:17]line Товар: 4610080727818 [04:47:17]line Салфетки Pamperino kids 8шт [04:47:17]line 1.000 * 25.00 [04:47:17]line = 25.00 [04:47:17]line НДС 12% НСП 1% [04:47:17]line > о реализуемом товаре [04:47:17]line ИТОГО: 25.00 [04:47:17]line НСП 1% : 0.22 [04:47:17]line НДС 12% : 2.65 [04:47:17]line Наличными: 25.00 [04:47:17]line Безнал.: 0.00 [04:47:17]line Место: АЗС № 87 "Партнер Нефть" [04:47:17]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [04:47:17]line СНО: Общий режим [04:47:17]line Чек 18 27.10.2024 04:47 [04:47:17]line Смена: 532 ФФД: 1.0 [04:47:17]line ЗНМ: 0300000084 [04:47:17]line РНМ: 0000000000091622 [04:47:17]line Версия ККМ: 001 [04:47:17]line ФМ: 0000000000874674 [04:47:17]line ФД: 60486 [04:47:17]line ФПД: 122779645021438 [04:47:17]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T044716&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60486&fm=122779645021438&tin=02508201610067®Number=0000000000091622&sum=2500 [04:47:17]line 0 [04:47:17]OFD Sender: Processing packet 60486 [packets to send 30, broken 29] [04:47:17]ProducePacketName [04:47:17]name=ofd_packets/00060486 [04:47:17]OFD Sender: To server: pG, [04:47:17]CommunicateWithHost lk.salyk.kg:30040 [04:47:17]ConnectInit lk.salyk.kg [04:47:17]written 0, free lines is 4095 [04:47:17]Connected sock=10 [04:47: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 36 37 34 2B 01 00 00 FC 5D 23 01 0B CA 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 09 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 01 00 00 00 00 07 04 06 00 C4 09 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 D4 C5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 46 EC 00 00 35 04 06 00 6F AA DD 20 8C FE E7 B3 3C 25 E2 85 46 D9 [04:47:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 03 89 47 00 2E 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 36 37 34 10 04 04 00 46 EC 00 00 F4 03 04 00 BC 6B 1D 67 B6 04 01 00 00 CC F9 3E 04 9C 34 B6 49 [04:47:18]CommunicateWithHost err = 0 [04:47:18]CheckOFDResponse [04:47:18]1017 (14) - 77093643461234 [04:47:18]1041 (16) - 0000000000874674 [04:47:18]1040 (4) - 60486 [04:47:18]1012 (4) - 26.10.2024 22:22 [04:47:18]1206 (1) - 0 [04:47:18]OFD Sender: Remove packet 60486 [04:47:18]ProducePacketName [04:47:18]name=ofd_packets/00060486 [04:47:18]NVStorageDeleteData [04:47:18]Write to MH i2c: 01 00 00 1D 02 1F [04:47:18]Write i2c OK [04:47:18]MH_I2C_Read... [04:47:18]Read from MH i2c: 01 [04:47:18]MH_I2C_Read... [04:47:18]Read from MH i2c: 01 07 00 [04:47:18]MH_I2C_Read... [04:47:18]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 E4 0C 16 [04:47:18]RasterBufferAndPrint [04:47:18]line [04:47:18]line [04:47:18]line [04:47:18]line [04:47:18]line [04:47:18]written 0, free lines is 3306 [04:47:18]MH_Cut [04:47:18]Write to MH i2c: D1 01 00 24 02 01 F8 [04:47:18]Write i2c OK [04:47:18]MH_I2C_Read... [04:47:18]Read from MH i2c: D1 [04:47:18]MH_I2C_Read... [04:47:18]Read from MH i2c: D1 01 00 [04:47:18]MH_I2C_Read... [04:47:18]Read from MH i2c: D1 01 00 24 02 00 F7 [04:47:18]Write to MH i2c: 01 00 00 25 02 27 [04:47:18]Write i2c OK [04:47:18]MH_I2C_Read... [04:47:18]OFD Sender: No OFD packet to send [04:47:19]*** Cut start [04:47:19]*** Partial cut [04:47:19]*** CUTSNS_PIN = 1 [04:47:19]*** CUTSNS_PIN = 0 [04:47:19]*** Brake cut motor [04:47:19]Read from MH i2c: 01 [04:47:19]MH_I2C_Read... [04:47:19]*** Stop cut motor [04:47:19]*** Cut end [04:47:19]Read from MH i2c: 01 07 00 [04:47:19]MH_I2C_Read... [04:47:19]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [04:47:19]process_action close_receipt done [04:47:19]requested_data is exist [04:47:19]produce_requested_data [04:47:19]requested_item fm.sn is exist - process it [04:47:19]wFMCommunicate request_size=4 [04:47:19]MH_SAM_APDU [04:47:19]CAPDU: 80 11 00 00 [04:47:19]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [04:47:19]Write i2c OK [04:47:19]MH_I2C_Read... [04:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:19]Read from MH i2c: E2 [04:47:19]MH_I2C_Read... [04:47:19]Read from MH i2c: E2 17 00 [04:47:19]MH_I2C_Read... [04:47:19]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F9 [04:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [04:47:19]wFMCommunicate OK [04:47:19]requested_item fd.num is exist - process it [04:47:19]SAM_PROTO_GetFieldsCounters [04:47:19]wFMCommunicate request_size=4 [04:47:19]MH_SAM_APDU [04:47:19]CAPDU: 80 13 00 00 [04:47:19]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [04:47:19]Write i2c OK [04:47:19]MH_I2C_Read... [04:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:19]Read from MH i2c: E2 [04:47:19]MH_I2C_Read... [04:47:19]Read from MH i2c: E2 62 00 [04:47:19]MH_I2C_Read... [04:47:19]Read from MH i2c: E2 62 00 27 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 46 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [04:47: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 46 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:47:19]wFMCommunicate OK [04:47:19]SAM_PROTO_GetFieldsCounters done [04:47:19]requested_item shift.num is exist - process it [04:47:19]requested_item shift.opened is exist - process it [04:47:19]req_shift_opened [04:47:19]FM_GetShiftState [04:47:19]SAM_PROTO_GetShiftState [04:47:19]wFMCommunicate request_size=4 [04:47:19]MH_SAM_APDU [04:47:19]CAPDU: 80 13 01 00 [04:47:19]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [04:47:19]Write i2c OK [04:47:19]MH_I2C_Read... [04:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:19]Read from MH i2c: E2 [04:47:19]MH_I2C_Read... [04:47:19]Read from MH i2c: E2 0E 00 [04:47:19]MH_I2C_Read... [04:47:19]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 43 [04:47:19]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [04:47:19]wFMCommunicate OK [04:47:19]SAM_PROTO_GetShiftState done [04:47:19]FM_GetShiftState done [04:47:19]req_shift_opened done [04:47:19]requested_item shift.open_date is exist - process it [04:47:19]req_shift_open_date [04:47:19]req_shift_open_date done [04:47:19]produce_requested_data done [04:47:19]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60486,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [04:47:19]process_action_free close_receipt [04:47:19]json_value_free [04:47:19]json_value_free done [04:47:19]process_json_proto returns [04:47:19]Send response to host [04:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60486,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [04:47:19]free response buf [04:47:19]execute_script done [04:47:19]execute_script returns [04:47:19]free content buf [04:47:19]Sock 7.Close socket [04:47:19]Sock 7.Thread stoped [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:01]ConnectInit Can't connect to host [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]accept exits with 9 [05:13:45]New connection [05:13:45]New thread 3067071844 created [05:13:45]Thread 3067215204 joined [05:13:45]Waiting for new connection... [05:13:45] Sock 9.Parse request [05:13:45]Sock 9.Check first char [05:13:45]Sock 9.First char is OK [05:13:45]request: POST /json_proto HTTP/1.0 [05:13:45]Method: POST [05:13:45]URL: /json_proto [05:13:45]Method is POST - this is cgi request [05:13:45]url: /json_proto [05:13:45]query_string will be loaded in cgi processing [05:13:45]execute_cgi json_proto POST (null) [05:13:45]execute_cgi path=json_proto method=POST [05:13:45]POST find Content-Length [05:13:45]Host: 172.17.42.196:8080 [05:13:45]Content-Length: 897 [05:13:45]Content-Type: application/json [05:13:45] [05:13:45]POST finish read [05:13:45]Found Content-Length = 897 [05:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200131", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 218.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:13:45]execute_script... [05:13:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200131", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 218.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:13:45]POST & json_proto [05:13:45]process_json_proto [05:13:45]json parsed OK: [05:13:45]protocol is kg_v1.0 [05:13:45]action value=close_receipt [05:13:45]process_action close_receipt [05:13:45]cmd_close_receipt [05:13:45]MH_GetDate [05:13:45]Write to MH i2c: F0 00 00 29 02 1A [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: F0 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: F0 09 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: F0 09 00 29 02 00 09 CC 1D 67 FF C4 6B 64 0E [05:13:45]GetLastDocTimeStamp 1730004436 [05:13:45]current date 1730006025 [05:13:45]FM_GetShiftState [05:13:45]SAM_PROTO_GetShiftState [05:13:45]wFMCommunicate request_size=4 [05:13:45]MH_SAM_APDU [05:13:45]CAPDU: 80 13 01 00 [05:13:45]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [05:13:45]Write i2c OK [05:13:45]MH_I2C_Read... [05:13:45]OFD Sender: No OFD packet to send [05:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:45]Read from MH i2c: E2 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 0E 00 [05:13:45]MH_I2C_Read... [05:13:45]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 45 [05:13:45]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [05:13:45]wFMCommunicate OK [05:13:45]SAM_PROTO_GetShiftState done [05:13:45]FM_GetShiftState done [05:13:45]opened in 1729989505 [05:13:45]opened+sec_in_day 1730075905 [05:13:45]quantity*price = 11900 [05:13:45]sum+1 = 11901 [05:13:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 218.00 НСП 1% : 1.93 НДС 12% : 23.15 Наличными: 218.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 19 27.10.2024 05:13 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60487 ФПД: 38321057318417 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T051345&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60487&fm=38321057318417&tin=02508201610067®Number=0000000000091622&sum=21800 0 [05:13:46]StoreToDocumentArchive [05:13:46]shift 532 fd 60487 [05:13:46]save to /storage/0532/doc_00060487 [05:13:46]save last doc name /storage/0532/doc_00060487 to /storage/kkm_last_doc_name [05:13:46]save OK [05:13:46]Clear old archive folders... [05:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=389 [05:13:46]tlvbuf is 00310FE0 [05:13:46]SAM_PROTO_ClearQueue [05:13:46]wFMCommunicate request_size=4 [05:13:46]MH_SAM_APDU [05:13:46]CAPDU: 80 09 00 00 [05:13:46]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:13:46]Read from MH i2c: E2 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [05:13:46]RAPDU: 90 00 [05:13:46]wFMCommunicate OK [05:13:46]SAM_PROTO_ClearQueue done [05:13:46]KKMCreateOFDPacket [05:13:46]OFDProtocolAddRootSTLVToBuf [05:13:46]FM_MakeSignedData [05:13:46]FM_MakeSignedData [05:13:46]SAM_PROTO_SignData [05:13:46]wFMCommunicate request_size=4 [05:13:46]MH_SAM_APDU [05:13:46]CAPDU: 80 0D 01 02 [05:13:46]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:13:46]Read from MH i2c: E2 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [05:13:46]RAPDU: 90 00 [05:13:46]wFMCommunicate OK [05:13:46]wFMCommunicate request_size=255 [05:13:46]MH_SAM_APDU [05:13:46]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [05:13:46]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 AA [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:46]Read from MH i2c: E2 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [05:13:46]RAPDU: 90 00 [05:13:46]wFMCommunicate OK [05:13:46]wFMCommunicate request_size=148 [05:13:46]MH_SAM_APDU [05:13:46]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 28 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 13 00 00 00 F4 03 04 00 09 CC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 47 EC 00 00 35 04 06 00 22 DA 51 02 46 11 [05:13:46]Write to MH i2c: E2 97 00 3A 02 80 0D 02 02 8F 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 28 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 13 00 00 00 F4 03 04 00 09 CC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 47 EC 00 00 35 04 06 00 22 DA 51 02 46 11 00 00 AE [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:46]Read from MH i2c: E2 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [05:13:46]RAPDU: 90 00 [05:13:46]wFMCommunicate OK [05:13:46]wFMCommunicate request_size=4 [05:13:46]MH_SAM_APDU [05:13:46]CAPDU: 80 0D 03 02 [05:13:46]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:13:46]Read from MH i2c: E2 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 0B 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 0B 00 3B 02 00 40 F0 1F 0C 91 76 EA 35 90 00 3A [05:13:46]RAPDU: 40 F0 1F 0C 91 76 EA 35 90 00 [05:13:46]wFMCommunicate OK [05:13:46]SAM_PROTO_SignData done [05:13:46]FM_MakeSignedData done [05:13:46]CreateOFDProtocolMessage [05:13:46]wFMCommunicate request_size=4 [05:13:46]MH_SAM_APDU [05:13:46]CAPDU: 80 11 00 00 [05:13:46]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:46]Read from MH i2c: E2 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 17 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0F [05:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [05:13:46]wFMCommunicate OK [05:13:46]CreateOFDProtocolMessage done [05:13:46]OFDSenderStorePacket 60487 [05:13:46]StoreOFDPacket docnum=60487 [05:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 99 01 00 00 91 BD 91 01 D9 C0 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 28 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 13 00 00 00 F4 03 04 00 09 CC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 47 EC 00 00 35 04 06 00 22 DA 51 02 46 11 40 F0 1F 0C 91 76 EA 35 [05:13:46]CheckFolder [05:13:46]dirname=/storage/ofd_packets [05:13:46]CheckFolder done [05:13:46]ProducePacketName [05:13:46]name=ofd_packets/00060487 [05:13:46]NVStorageSaveData ofd_packets/00060487 [05:13:46]File name is /storage/ofd_packets/00060487 [05:13:46]Write 439 bytes [05:13:46]NVStorageSaveData done [05:13:46]OFDSenderStorePacket done [05:13:46]KKMCreateOFDPacket done [05:13:46]NVStorageSaveData kkm_last_timestamp [05:13:46]File name is /storage/kkm_last_timestamp [05:13:46]Write 4 bytes [05:13:46]NVStorageSaveData done [05:13:46]ExternCall_PrintAddStr [05:13:46]wPrintStart [05:13:46]Write to MH i2c: 01 00 00 3D 02 3F [05:13:46]Write i2c OK [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: 01 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: 01 07 00 [05:13:46]MH_I2C_Read... [05:13:46]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [05:13:46]RasterBufferAndPrint [05:13:46]line Счет N : (3)200131 [05:13:46]line ИНН: 02508201610067 [05:13:46]line Контрольно-Кассовый Чек [05:13:46]line ПРОДАЖА [05:13:46]line Товар: 4870001570071 [05:13:46]line Напиток Pepsi 1л [05:13:47]line 1.000 * 119.00 [05:13:47]line = 119.00 [05:13:47]line НДС 12% НСП 1% [05:13:47]line > о реализуемом товаре [05:13:47]line Товар: 4870022003305 [05:13:47]line Напиток Gorilla эн нат ж/б 0,5/0,45л [05:13:47]line 1.000 * 99.00 [05:13:47]line = 99.00 [05:13:47]line НДС 12% НСП 1% [05:13:47]line > о реализуемом товаре [05:13:47]line ИТОГО: 218.00 [05:13:47]line НСП 1% : 1.93 [05:13:47]line НДС 12% : 23.15 [05:13:47]line Наличными: 218.00 [05:13:47]line Безнал.: 0.00 [05:13:47]line Место: АЗС № 87 "Партнер Нефть" [05:13:47]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [05:13:47]line СНО: Общий режим [05:13:47]line Чек 19 27.10.2024 05:13 [05:13:47]line Смена: 532 ФФД: 1.0 [05:13:47]line ЗНМ: 0300000084 [05:13:47]line РНМ: 0000000000091622 [05:13:47]line Версия ККМ: 001 [05:13:47]line ФМ: 0000000000874674 [05:13:47]line ФД: 60487 [05:13:47]line ФПД: 38321057318417 [05:13:47]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T051345&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60487&fm=38321057318417&tin=02508201610067®Number=0000000000091622&sum=21800 [05:13:47]line 0 [05:13:47]OFD Sender: Processing packet 60487 [packets to send 30, broken 29] [05:13:47]ProducePacketName [05:13:47]name=ofd_packets/00060487 [05:13:47]OFD Sender: To server: pG, [05:13:47]CommunicateWithHost lk.salyk.kg:30040 [05:13:47]ConnectInit lk.salyk.kg [05:13:47]written 0, free lines is 4095 [05:13:47]Connected sock=10 [05:13: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 36 37 34 99 01 00 00 91 BD 91 01 D9 C0 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 09 00 00 00 00 07 04 06 00 28 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 13 00 00 00 F4 03 04 00 09 CC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 47 EC 00 00 35 04 06 00 22 DA 51 02 46 11 40 F0 1F 0C 91 76 EA 35 [05:13:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 7D 9E 47 00 8E 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 36 37 34 10 04 04 00 47 EC 00 00 F4 03 04 00 F2 71 1D 67 B6 04 01 00 00 BE 24 85 30 47 1D C2 90 [05:13:47]CommunicateWithHost err = 0 [05:13:47]CheckOFDResponse [05:13:47]1017 (14) - 77093643461234 [05:13:47]1041 (16) - 0000000000874674 [05:13:47]1040 (4) - 60487 [05:13:47]1012 (4) - 26.10.2024 22:49 [05:13:47]1206 (1) - 0 [05:13:47]OFD Sender: Remove packet 60487 [05:13:47]ProducePacketName [05:13:47]name=ofd_packets/00060487 [05:13:47]NVStorageDeleteData [05:13:47]Write to MH i2c: 01 00 00 6C 02 6E [05:13:47]Write i2c OK [05:13:47]MH_I2C_Read... [05:13:47]Read from MH i2c: 01 [05:13:47]MH_I2C_Read... [05:13:47]Read from MH i2c: 01 07 00 [05:13:47]MH_I2C_Read... [05:13:47]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 A0 0C 21 [05:13:47]RasterBufferAndPrint [05:13:47]line [05:13:47]line [05:13:47]line [05:13:47]line [05:13:47]line [05:13:47]written 0, free lines is 3239 [05:13:47]MH_Cut [05:13:47]Write to MH i2c: D1 01 00 73 02 01 47 [05:13:47]Write i2c OK [05:13:47]MH_I2C_Read... [05:13:47]Read from MH i2c: D1 [05:13:47]MH_I2C_Read... [05:13:47]Read from MH i2c: D1 01 00 [05:13:47]MH_I2C_Read... [05:13:47]Read from MH i2c: D1 01 00 73 02 00 46 [05:13:47]Write to MH i2c: 01 00 00 74 02 76 [05:13:47]Write i2c OK [05:13:47]MH_I2C_Read... [05:13:48]OFD Sender: No OFD packet to send [05:13:48]*** Cut start [05:13:48]*** Partial cut [05:13:48]*** CUTSNS_PIN = 1 [05:13:48]*** CUTSNS_PIN = 0 [05:13:48]*** Brake cut motor [05:13:49]Read from MH i2c: 01 [05:13:49]MH_I2C_Read... [05:13:49]*** Stop cut motor [05:13:49]*** Cut end [05:13:49]Read from MH i2c: 01 07 00 [05:13:49]MH_I2C_Read... [05:13:49]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [05:13:49]process_action close_receipt done [05:13:49]requested_data is exist [05:13:49]produce_requested_data [05:13:49]requested_item fm.sn is exist - process it [05:13:49]wFMCommunicate request_size=4 [05:13:49]MH_SAM_APDU [05:13:49]CAPDU: 80 11 00 00 [05:13:49]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [05:13:49]Write i2c OK [05:13:49]MH_I2C_Read... [05:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:49]Read from MH i2c: E2 [05:13:49]MH_I2C_Read... [05:13:49]Read from MH i2c: E2 17 00 [05:13:49]MH_I2C_Read... [05:13:49]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 48 [05:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [05:13:49]wFMCommunicate OK [05:13:49]requested_item fd.num is exist - process it [05:13:49]SAM_PROTO_GetFieldsCounters [05:13:49]wFMCommunicate request_size=4 [05:13:49]MH_SAM_APDU [05:13:49]CAPDU: 80 13 00 00 [05:13:49]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [05:13:49]Write i2c OK [05:13:49]MH_I2C_Read... [05:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:49]Read from MH i2c: E2 [05:13:49]MH_I2C_Read... [05:13:49]Read from MH i2c: E2 62 00 [05:13:49]MH_I2C_Read... [05:13:49]Read from MH i2c: E2 62 00 76 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 47 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [05:13: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 47 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:13:49]wFMCommunicate OK [05:13:49]SAM_PROTO_GetFieldsCounters done [05:13:49]requested_item shift.num is exist - process it [05:13:49]requested_item shift.opened is exist - process it [05:13:49]req_shift_opened [05:13:49]FM_GetShiftState [05:13:49]SAM_PROTO_GetShiftState [05:13:49]wFMCommunicate request_size=4 [05:13:49]MH_SAM_APDU [05:13:49]CAPDU: 80 13 01 00 [05:13:49]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [05:13:49]Write i2c OK [05:13:49]MH_I2C_Read... [05:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:49]Read from MH i2c: E2 [05:13:49]MH_I2C_Read... [05:13:49]Read from MH i2c: E2 0E 00 [05:13:49]MH_I2C_Read... [05:13:49]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 92 [05:13:49]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [05:13:49]wFMCommunicate OK [05:13:49]SAM_PROTO_GetShiftState done [05:13:49]FM_GetShiftState done [05:13:49]req_shift_opened done [05:13:49]requested_item shift.open_date is exist - process it [05:13:49]req_shift_open_date [05:13:49]req_shift_open_date done [05:13:49]produce_requested_data done [05:13:49]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60487,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [05:13:49]process_action_free close_receipt [05:13:49]json_value_free [05:13:49]json_value_free done [05:13:49]process_json_proto returns [05:13:49]Send response to host [05:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60487,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [05:13:49]free response buf [05:13:49]execute_script done [05:13:49]execute_script returns [05:13:49]free content buf [05:13:49]Sock 9.Close socket [05:13:49]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]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:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:47]accept exits with 7 [05:42:47]New connection [05:42:47]New thread 3067215204 created [05:42:47]Thread 3067071844 joined [05:42:47]Waiting for new connection... [05:42:47] Sock 7.Parse request [05:42:47]Sock 7.Check first char [05:42:47]Sock 7.First char is OK [05:42:47]request: POST /json_proto HTTP/1.0 [05:42:47]Method: POST [05:42:47]URL: /json_proto [05:42:47]Method is POST - this is cgi request [05:42:47]url: /json_proto [05:42:47]query_string will be loaded in cgi processing [05:42:47]execute_cgi json_proto POST (null) [05:42:47]execute_cgi path=json_proto method=POST [05:42:47]POST find Content-Length [05:42:47]Host: 172.17.42.196:8080 [05:42:47]Content-Length: 997 [05:42:47]Content-Type: application/json [05:42:47] [05:42:47]POST finish read [05:42:47]Found Content-Length = 997 [05:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200132", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 3.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:47]execute_script... [05:42:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200132", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 3.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:47]POST & json_proto [05:42:47]process_json_proto [05:42:47]json parsed OK: [05:42:47]protocol is kg_v1.0 [05:42:47]action value=close_receipt [05:42:47]process_action close_receipt [05:42:47]cmd_close_receipt [05:42:47]MH_GetDate [05:42:47]Write to MH i2c: F0 00 00 78 02 69 [05:42:47]Write i2c OK [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: F0 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: F0 09 00 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: F0 09 00 78 02 00 D8 D2 1D 67 FF C4 6B 64 32 [05:42:47]GetLastDocTimeStamp 1730006025 [05:42:47]current date 1730007768 [05:42:47]FM_GetShiftState [05:42:47]SAM_PROTO_GetShiftState [05:42:47]wFMCommunicate request_size=4 [05:42:47]MH_SAM_APDU [05:42:47]CAPDU: 80 13 01 00 [05:42:47]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [05:42:47]Write i2c OK [05:42:47]MH_I2C_Read... [05:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:47]Read from MH i2c: E2 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 0E 00 [05:42:47]MH_I2C_Read... [05:42:47]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 94 [05:42:47]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [05:42:47]wFMCommunicate OK [05:42:47]SAM_PROTO_GetShiftState done [05:42:47]FM_GetShiftState done [05:42:47]opened in 1729989505 [05:42:47]opened+sec_in_day 1730075905 [05:42:47]quantity*price = 7500 [05:42:47]sum+1 = 7501 [05:42:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160884 Снек Курут индивидуальный 3.000 * 15.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 20 27.10.2024 05:42 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60488 ФПД: 206374993734452 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054248&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60488&fm=206374993734452&tin=02508201610067®Number=0000000000091622&sum=12000 0 [05:42:49]StoreToDocumentArchive [05:42:49]shift 532 fd 60488 [05:42:49]save to /storage/0532/doc_00060488 [05:42:49]save last doc name /storage/0532/doc_00060488 to /storage/kkm_last_doc_name [05:42:49]save OK [05:42:49]Clear old archive folders... [05:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=415 [05:42:49]tlvbuf is 00311560 [05:42:49]SAM_PROTO_ClearQueue [05:42:49]wFMCommunicate request_size=4 [05:42:49]MH_SAM_APDU [05:42:49]CAPDU: 80 09 00 00 [05:42:49]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [05:42:49]Write i2c OK [05:42:49]MH_I2C_Read... [05:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:49]Read from MH i2c: E2 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [05:42:49]RAPDU: 90 00 [05:42:49]wFMCommunicate OK [05:42:49]SAM_PROTO_ClearQueue done [05:42:49]KKMCreateOFDPacket [05:42:49]OFDProtocolAddRootSTLVToBuf [05:42:49]FM_MakeSignedData [05:42:49]FM_MakeSignedData [05:42:49]SAM_PROTO_SignData [05:42:49]wFMCommunicate request_size=4 [05:42:49]MH_SAM_APDU [05:42:49]CAPDU: 80 0D 01 02 [05:42:49]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [05:42:49]Write i2c OK [05:42:49]MH_I2C_Read... [05:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:49]Read from MH i2c: E2 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [05:42:49]RAPDU: 90 00 [05:42:49]wFMCommunicate OK [05:42:49]wFMCommunicate request_size=255 [05:42:49]MH_SAM_APDU [05:42:49]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [05:42:49]Write to MH i2c: E2 02 01 88 02 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 57 [05:42:49]Write i2c OK [05:42:49]MH_I2C_Read... [05:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:49]Read from MH i2c: E2 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [05:42:49]RAPDU: 90 00 [05:42:49]wFMCommunicate OK [05:42:49]wFMCommunicate request_size=174 [05:42:49]MH_SAM_APDU [05:42:49]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 D2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 48 EC 00 00 35 04 06 00 BB B2 6C 31 2B 34 [05:42:49]Write to MH i2c: E2 B1 00 89 02 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 D2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 48 EC 00 00 35 04 06 00 BB B2 6C 31 2B 34 00 00 17 [05:42:49]Write i2c OK [05:42:49]MH_I2C_Read... [05:42:49]OFD Sender: No OFD packet to send [05:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:49]Read from MH i2c: E2 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [05:42:49]RAPDU: 90 00 [05:42:49]wFMCommunicate OK [05:42:49]wFMCommunicate request_size=4 [05:42:49]MH_SAM_APDU [05:42:49]CAPDU: 80 0D 03 02 [05:42:49]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [05:42:49]Write i2c OK [05:42:49]MH_I2C_Read... [05:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:49]Read from MH i2c: E2 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 0B 00 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 0B 00 8A 02 00 94 35 57 1E CB 2C 3D 32 90 00 AC [05:42:49]RAPDU: 94 35 57 1E CB 2C 3D 32 90 00 [05:42:49]wFMCommunicate OK [05:42:49]SAM_PROTO_SignData done [05:42:49]FM_MakeSignedData done [05:42:49]CreateOFDProtocolMessage [05:42:49]wFMCommunicate request_size=4 [05:42:49]MH_SAM_APDU [05:42:49]CAPDU: 80 11 00 00 [05:42:49]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [05:42:49]Write i2c OK [05:42:49]MH_I2C_Read... [05:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:49]Read from MH i2c: E2 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 17 00 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5E [05:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [05:42:49]wFMCommunicate OK [05:42:49]CreateOFDProtocolMessage done [05:42:49]OFDSenderStorePacket 60488 [05:42:49]StoreOFDPacket docnum=60488 [05:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 B3 01 00 00 77 4B AB 01 DF E8 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 D2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 48 EC 00 00 35 04 06 00 BB B2 6C 31 2B 34 94 35 57 1E CB 2C 3D 32 [05:42:49]CheckFolder [05:42:49]dirname=/storage/ofd_packets [05:42:49]CheckFolder done [05:42:49]ProducePacketName [05:42:49]name=ofd_packets/00060488 [05:42:49]NVStorageSaveData ofd_packets/00060488 [05:42:49]File name is /storage/ofd_packets/00060488 [05:42:49]Write 465 bytes [05:42:49]NVStorageSaveData done [05:42:49]OFDSenderStorePacket done [05:42:49]KKMCreateOFDPacket done [05:42:49]NVStorageSaveData kkm_last_timestamp [05:42:49]File name is /storage/kkm_last_timestamp [05:42:49]Write 4 bytes [05:42:49]NVStorageSaveData done [05:42:49]ExternCall_PrintAddStr [05:42:49]wPrintStart [05:42:49]Write to MH i2c: 01 00 00 8C 02 8E [05:42:49]Write i2c OK [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: 01 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: 01 07 00 [05:42:49]MH_I2C_Read... [05:42:49]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [05:42:50]RasterBufferAndPrint [05:42:50]line Счет N : (3)200132 [05:42:50]line ИНН: 02508201610067 [05:42:50]line Контрольно-Кассовый Чек [05:42:50]line ПРОДАЖА [05:42:50]line Товар: 5449000027450 [05:42:50]line Напиток FuzeTea чай манго,ром 0,5л [05:42:50]line 1.000 * 75.00 [05:42:50]line = 75.00 [05:42:50]line НДС 12% НСП 1% [05:42:50]line > о реализуемом товаре [05:42:50]line Товар: 4700000160884 [05:42:50]line Снек Курут индивидуальный [05:42:50]line 3.000 * 15.00 [05:42:50]line = 45.00 [05:42:50]line НДС 12% НСП 1% [05:42:50]line > о реализуемом товаре [05:42:50]line ИТОГО: 120.00 [05:42:50]line НСП 1% : 1.06 [05:42:50]line НДС 12% : 12.74 [05:42:50]line Наличными: 120.00 [05:42:50]line Безнал.: 0.00 [05:42:50]line Место: АЗС № 87 "Партнер Нефть" [05:42:50]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [05:42:50]line СНО: Общий режим [05:42:50]line Чек 20 27.10.2024 05:42 [05:42:50]line Смена: 532 ФФД: 1.0 [05:42:50]line ЗНМ: 0300000084 [05:42:50]line РНМ: 0000000000091622 [05:42:50]line Версия ККМ: 001 [05:42:50]line ФМ: 0000000000874674 [05:42:50]line ФД: 60488 [05:42:50]line ФПД: 206374993734452 [05:42:50]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T054248&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60488&fm=206374993734452&tin=02508201610067®Number=0000000000091622&sum=12000 [05:42:50]line 0 [05:42:50]OFD Sender: Processing packet 60488 [packets to send 30, broken 29] [05:42:50]ProducePacketName [05:42:50]name=ofd_packets/00060488 [05:42:50]OFD Sender: To server: pG, [05:42:50]CommunicateWithHost lk.salyk.kg:30040 [05:42:50]ConnectInit lk.salyk.kg [05:42:50]written 0, free lines is 4095 [05:42:50]Connected sock=10 [05:42: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 36 37 34 B3 01 00 00 77 4B AB 01 DF E8 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 D8 D2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 48 EC 00 00 35 04 06 00 BB B2 6C 31 2B 34 94 35 57 1E CB 2C 3D 32 [05:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 60 19 47 00 33 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 36 37 34 10 04 04 00 48 EC 00 00 F4 03 04 00 C1 78 1D 67 B6 04 01 00 00 C0 14 38 71 DF 6E B9 68 [05:42:50]CommunicateWithHost err = 0 [05:42:50]CheckOFDResponse [05:42:50]1017 (14) - 77093643461234 [05:42:50]1041 (16) - 0000000000874674 [05:42:50]1040 (4) - 60488 [05:42:50]1012 (4) - 26.10.2024 23:18 [05:42:50]1206 (1) - 0 [05:42:50]OFD Sender: Remove packet 60488 [05:42:50]ProducePacketName [05:42:50]name=ofd_packets/00060488 [05:42:50]NVStorageDeleteData [05:42:50]Write to MH i2c: 01 00 00 BB 02 BD [05:42:50]Write i2c OK [05:42:50]MH_I2C_Read... [05:42:50]Read from MH i2c: 01 [05:42:50]MH_I2C_Read... [05:42:50]Read from MH i2c: 01 07 00 [05:42:50]MH_I2C_Read... [05:42:50]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 76 0C 46 [05:42:50]RasterBufferAndPrint [05:42:50]line [05:42:50]line [05:42:50]line [05:42:50]line [05:42:50]line [05:42:50]written 0, free lines is 3196 [05:42:50]MH_Cut [05:42:50]Write to MH i2c: D1 01 00 C2 02 01 96 [05:42:50]Write i2c OK [05:42:50]MH_I2C_Read... [05:42:50]Read from MH i2c: D1 [05:42:50]MH_I2C_Read... [05:42:50]Read from MH i2c: D1 01 00 [05:42:50]MH_I2C_Read... [05:42:50]Read from MH i2c: D1 01 00 C2 02 00 95 [05:42:50]Write to MH i2c: 01 00 00 C3 02 C5 [05:42:50]Write i2c OK [05:42:50]MH_I2C_Read... [05:42:50]OFD Sender: No OFD packet to send [05:42:51]*** Cut start [05:42:51]*** Partial cut [05:42:51]*** CUTSNS_PIN = 1 [05:42:51]*** CUTSNS_PIN = 0 [05:42:51]*** Brake cut motor [05:42:52]Read from MH i2c: 01 [05:42:52]MH_I2C_Read... [05:42:52]*** Stop cut motor [05:42:52]*** Cut end [05:42:52]Read from MH i2c: 01 07 00 [05:42:52]MH_I2C_Read... [05:42:52]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [05:42:52]process_action close_receipt done [05:42:52]requested_data is exist [05:42:52]produce_requested_data [05:42:52]requested_item fm.sn is exist - process it [05:42:52]wFMCommunicate request_size=4 [05:42:52]MH_SAM_APDU [05:42:52]CAPDU: 80 11 00 00 [05:42:52]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [05:42:52]Write i2c OK [05:42:52]MH_I2C_Read... [05:42:52]Read from MH i2c: E2 [05:42:52]MH_I2C_Read... [05:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:52]Read from MH i2c: E2 17 00 [05:42:52]MH_I2C_Read... [05:42:52]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 97 [05:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [05:42:52]wFMCommunicate OK [05:42:52]requested_item fd.num is exist - process it [05:42:52]SAM_PROTO_GetFieldsCounters [05:42:52]wFMCommunicate request_size=4 [05:42:52]MH_SAM_APDU [05:42:52]CAPDU: 80 13 00 00 [05:42:52]Write to MH i2c: E2 08 00 C5 02 80 13 00 00 00 00 00 00 43 [05:42:52]Write i2c OK [05:42:52]MH_I2C_Read... [05:42:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:52]Read from MH i2c: E2 [05:42:52]MH_I2C_Read... [05:42:52]Read from MH i2c: E2 62 00 [05:42:52]MH_I2C_Read... [05:42:52]Read from MH i2c: E2 62 00 C5 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 48 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [05:42: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 48 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:42:52]wFMCommunicate OK [05:42:52]SAM_PROTO_GetFieldsCounters done [05:42:52]requested_item shift.num is exist - process it [05:42:52]requested_item shift.opened is exist - process it [05:42:52]req_shift_opened [05:42:52]FM_GetShiftState [05:42:52]SAM_PROTO_GetShiftState [05:42:52]wFMCommunicate request_size=4 [05:42:52]MH_SAM_APDU [05:42:52]CAPDU: 80 13 01 00 [05:42:52]Write to MH i2c: E2 08 00 C6 02 80 13 01 00 00 00 00 00 45 [05:42:52]Write i2c OK [05:42:52]MH_I2C_Read... [05:42:52]Read from MH i2c: E2 [05:42:52]MH_I2C_Read... [05:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:52]Read from MH i2c: E2 0E 00 [05:42:52]MH_I2C_Read... [05:42:52]Read from MH i2c: E2 0E 00 C6 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 E1 [05:42:52]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [05:42:52]wFMCommunicate OK [05:42:52]SAM_PROTO_GetShiftState done [05:42:52]FM_GetShiftState done [05:42:52]req_shift_opened done [05:42:52]requested_item shift.open_date is exist - process it [05:42:52]req_shift_open_date [05:42:52]req_shift_open_date done [05:42:52]produce_requested_data done [05:42:52]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60488,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [05:42:52]process_action_free close_receipt [05:42:52]json_value_free [05:42:52]json_value_free done [05:42:52]process_json_proto returns [05:42:52]Send response to host [05:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60488,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [05:42:52]free response buf [05:42:52]execute_script done [05:42:52]execute_script returns [05:42:52]free content buf [05:42:52]Sock 7.Close socket [05:42:52]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:28]accept exits with 9 [06:05:28]New connection [06:05:28]New thread 3067071844 created [06:05:28]Thread 3067215204 joined [06:05:28]Waiting for new connection... [06:05:28] Sock 9.Parse request [06:05:28]Sock 9.Check first char [06:05:28]Sock 9.First char is OK [06:05:28]request: POST /json_proto HTTP/1.0 [06:05:28]Method: POST [06:05:28]URL: /json_proto [06:05:28]Method is POST - this is cgi request [06:05:28]url: /json_proto [06:05:28]query_string will be loaded in cgi processing [06:05:28]execute_cgi json_proto POST (null) [06:05:28]execute_cgi path=json_proto method=POST [06:05:28]POST find Content-Length [06:05:28]Host: 172.17.42.196:8080 [06:05:28]Content-Length: 678 [06:05:28]Content-Type: application/json [06:05:28] [06:05:28]POST finish read [06:05:28]Found Content-Length = 678 [06:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:28]execute_script... [06:05: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)3311320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:28]POST & json_proto [06:05:28]process_json_proto [06:05:28]json parsed OK: [06:05:28]protocol is kg_v1.0 [06:05:28]action value=close_receipt [06:05:28]process_action close_receipt [06:05:28]cmd_close_receipt [06:05:28]MH_GetDate [06:05:28]Write to MH i2c: F0 00 00 C7 02 B8 [06:05:28]Write i2c OK [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: F0 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: F0 09 00 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: F0 09 00 C7 02 00 29 D8 1D 67 FF C4 6B 64 D8 [06:05:28]GetLastDocTimeStamp 1730007768 [06:05:28]current date 1730009129 [06:05:28]FM_GetShiftState [06:05:28]SAM_PROTO_GetShiftState [06:05:28]wFMCommunicate request_size=4 [06:05:28]MH_SAM_APDU [06:05:28]CAPDU: 80 13 01 00 [06:05:28]Write to MH i2c: E2 08 00 C8 02 80 13 01 00 00 00 00 00 47 [06:05:28]Write i2c OK [06:05:28]MH_I2C_Read... [06:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:28]Read from MH i2c: E2 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 0E 00 [06:05:28]MH_I2C_Read... [06:05:28]Read from MH i2c: E2 0E 00 C8 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 E3 [06:05:28]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:05:28]wFMCommunicate OK [06:05:28]SAM_PROTO_GetShiftState done [06:05:28]FM_GetShiftState done [06:05:28]opened in 1729989505 [06:05:28]opened+sec_in_day 1730075905 [06:05:28]quantity*price = 30038 [06:05:28]sum+1 = 30039 [06:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 21 27.10.2024 06:05 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60489 ФПД: 166550672007789 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060529&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60489&fm=166550672007789&tin=02508201610067®Number=0000000000091622&sum=30000 [06:05:29]StoreToDocumentArchive [06:05:29]shift 532 fd 60489 [06:05:29]save to /storage/0532/doc_00060489 [06:05:29]save last doc name /storage/0532/doc_00060489 to /storage/kkm_last_doc_name [06:05:29]save OK [06:05:29]Clear old archive folders... [06:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:05:29]tlvbuf is 002D46B0 [06:05:29]SAM_PROTO_ClearQueue [06:05:29]wFMCommunicate request_size=4 [06:05:29]MH_SAM_APDU [06:05:29]CAPDU: 80 09 00 00 [06:05:29]Write to MH i2c: E2 08 00 D5 02 80 09 00 00 00 00 00 00 49 [06:05:29]Write i2c OK [06:05:29]MH_I2C_Read... [06:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:05:29]Read from MH i2c: E2 [06:05:29]MH_I2C_Read... [06:05:29]Read from MH i2c: E2 03 00 [06:05:29]MH_I2C_Read... [06:05:29]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [06:05:29]RAPDU: 90 00 [06:05:29]wFMCommunicate OK [06:05:29]SAM_PROTO_ClearQueue done [06:05:29]KKMCreateOFDPacket [06:05:29]OFDProtocolAddRootSTLVToBuf [06:05:29]FM_MakeSignedData [06:05:29]FM_MakeSignedData [06:05:29]SAM_PROTO_SignData [06:05:29]wFMCommunicate request_size=4 [06:05:29]MH_SAM_APDU [06:05:29]CAPDU: 80 0D 01 02 [06:05:29]Write to MH i2c: E2 08 00 D6 02 80 0D 01 02 00 00 00 00 51 [06:05:29]Write i2c OK [06:05:29]MH_I2C_Read... [06:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:05:30]Read from MH i2c: E2 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 03 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [06:05:30]RAPDU: 90 00 [06:05:30]wFMCommunicate OK [06:05:30]wFMCommunicate request_size=255 [06:05:30]MH_SAM_APDU [06:05:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 29 D8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 49 EC 00 00 35 04 06 00 97 [06:05:30]Write to MH i2c: E2 02 01 D7 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 29 D8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 49 EC 00 00 35 04 06 00 97 00 00 4E [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:30]Read from MH i2c: E2 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 03 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [06:05:30]RAPDU: 90 00 [06:05:30]wFMCommunicate OK [06:05:30]wFMCommunicate request_size=10 [06:05:30]MH_SAM_APDU [06:05:30]CAPDU: 80 0D 02 02 05 7A 19 A4 62 6D [06:05:30]Write to MH i2c: E2 0D 00 D8 02 80 0D 02 02 05 00 7A 19 A4 62 6D 00 00 64 [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:30]Read from MH i2c: E2 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 03 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [06:05:30]RAPDU: 90 00 [06:05:30]wFMCommunicate OK [06:05:30]wFMCommunicate request_size=4 [06:05:30]MH_SAM_APDU [06:05:30]CAPDU: 80 0D 03 02 [06:05:30]Write to MH i2c: E2 08 00 D9 02 80 0D 03 02 00 00 00 00 56 [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:05:30]Read from MH i2c: E2 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 0B 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 0B 00 D9 02 00 F0 97 52 3F E2 E1 B4 8E 90 00 74 [06:05:30]RAPDU: F0 97 52 3F E2 E1 B4 8E 90 00 [06:05:30]wFMCommunicate OK [06:05:30]SAM_PROTO_SignData done [06:05:30]FM_MakeSignedData done [06:05:30]CreateOFDProtocolMessage [06:05:30]wFMCommunicate request_size=4 [06:05:30]MH_SAM_APDU [06:05:30]CAPDU: 80 11 00 00 [06:05:30]Write to MH i2c: E2 08 00 DA 02 80 11 00 00 00 00 00 00 56 [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:30]Read from MH i2c: E2 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 17 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: E2 17 00 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AD [06:05:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:05:30]wFMCommunicate OK [06:05:30]CreateOFDProtocolMessage done [06:05:30]OFDSenderStorePacket 60489 [06:05:30]StoreOFDPacket docnum=60489 [06:05:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 C1 55 07 01 8A 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 29 D8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 49 EC 00 00 35 04 06 00 97 7A 19 A4 62 6D F0 97 52 3F E2 E1 B4 8E [06:05:30]CheckFolder [06:05:30]dirname=/storage/ofd_packets [06:05:30]CheckFolder done [06:05:30]ProducePacketName [06:05:30]name=ofd_packets/00060489 [06:05:30]NVStorageSaveData ofd_packets/00060489 [06:05:30]File name is /storage/ofd_packets/00060489 [06:05:30]Write 301 bytes [06:05:30]NVStorageSaveData done [06:05:30]OFDSenderStorePacket done [06:05:30]KKMCreateOFDPacket done [06:05:30]NVStorageSaveData kkm_last_timestamp [06:05:30]File name is /storage/kkm_last_timestamp [06:05:30]Write 4 bytes [06:05:30]NVStorageSaveData done [06:05:30]ExternCall_PrintAddStr [06:05:30]wPrintStart [06:05:30]Write to MH i2c: 01 00 00 DB 02 DD [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: 01 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: 01 07 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 FF 0F F2 [06:05:30]RasterBufferAndPrint [06:05:30]line Счет N : (1)3311320 [06:05:30]line ИНН: 02508201610067 [06:05:30]line Контрольно-Кассовый Чек [06:05:30]line ПРОДАЖА [06:05:30]line ТРК (МРК, ГНК) : 22 [06:05:30]line Товар: 2710124130 [06:05:30]line Аи-92-К-4 [06:05:30]line 4.490 * 66.90 [06:05:30]line = 300.38 [06:05:30]line НДС 12% НСП 1% [06:05:30]line > о реализуемом товаре [06:05:30]line ОКРУГЛЕНИЕ: -0.38 [06:05:30]line ИТОГО: 300.00 [06:05:30]line Внесено: 300.00 [06:05:30]line СДАЧА: 0.00 [06:05:30]line НСП 1% : 2.66 [06:05:30]line НДС 12% : 31.90 [06:05:30]line Наличными: 300.00 [06:05:30]line Безнал.: 0.00 [06:05:30]line Место: АЗС № 87 "Партнер Нефть" [06:05:30]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [06:05:30]line СНО: Общий режим [06:05:30]line Чек 21 27.10.2024 06:05 [06:05:30]line Смена: 532 ФФД: 1.0 [06:05:30]line ЗНМ: 0300000084 [06:05:30]line РНМ: 0000000000091622 [06:05:30]line Версия ККМ: 001 [06:05:30]line ФМ: 0000000000874674 [06:05:30]line ФД: 60489 [06:05:30]line ФПД: 166550672007789 [06:05:30]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060529&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60489&fm=166550672007789&tin=02508201610067®Number=0000000000091622&sum=30000 [06:05:30]written 0, free lines is 4095 [06:05:30]OFD Sender: Processing packet 60489 [packets to send 30, broken 29] [06:05:30]ProducePacketName [06:05:30]name=ofd_packets/00060489 [06:05:30]OFD Sender: To server: pG, [06:05:30]CommunicateWithHost lk.salyk.kg:30040 [06:05:30]ConnectInit lk.salyk.kg [06:05:30]Connected sock=10 [06:05: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 36 37 34 0F 01 00 00 C1 55 07 01 8A 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 29 D8 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 49 EC 00 00 35 04 06 00 97 7A 19 A4 62 6D F0 97 52 3F E2 E1 B4 8E [06:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 41 38 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 36 37 34 10 04 04 00 49 EC 00 00 F4 03 04 00 11 7E 1D 67 B6 04 01 00 00 D8 19 38 BD 68 3B 3A AA [06:05:30]CommunicateWithHost err = 0 [06:05:30]CheckOFDResponse [06:05:30]1017 (14) - 77093643461234 [06:05:30]1041 (16) - 0000000000874674 [06:05:30]1040 (4) - 60489 [06:05:30]1012 (4) - 26.10.2024 23:41 [06:05:30]1206 (1) - 0 [06:05:30]OFD Sender: Remove packet 60489 [06:05:30]ProducePacketName [06:05:30]name=ofd_packets/00060489 [06:05:30]NVStorageDeleteData [06:05:30]Write to MH i2c: 01 00 00 06 03 09 [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: 01 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: 01 07 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 E5 0C 01 [06:05:30]RasterBufferAndPrint [06:05:30]line [06:05:30]line [06:05:30]line [06:05:30]line [06:05:30]line [06:05:30]written 0, free lines is 3307 [06:05:30]MH_Cut [06:05:30]Write to MH i2c: D1 01 00 0D 03 01 E2 [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: D1 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: D1 01 00 [06:05:30]MH_I2C_Read... [06:05:30]Read from MH i2c: D1 01 00 0D 03 00 E1 [06:05:30]Write to MH i2c: 01 00 00 0E 03 11 [06:05:30]Write i2c OK [06:05:30]MH_I2C_Read... [06:05:31]OFD Sender: No OFD packet to send [06:05:31]*** Cut start [06:05:31]*** Partial cut [06:05:31]*** CUTSNS_PIN = 1 [06:05:31]*** CUTSNS_PIN = 0 [06:05:32]*** Brake cut motor [06:05:32]Read from MH i2c: 01 [06:05:32]MH_I2C_Read... [06:05:32]*** Stop cut motor [06:05:32]*** Cut end [06:05:32]Read from MH i2c: 01 07 00 [06:05:32]MH_I2C_Read... [06:05:32]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 FF 0F 26 [06:05:32]process_action close_receipt done [06:05:32]requested_data is exist [06:05:32]produce_requested_data [06:05:32]requested_item fm.sn is exist - process it [06:05:32]wFMCommunicate request_size=4 [06:05:32]MH_SAM_APDU [06:05:32]CAPDU: 80 11 00 00 [06:05:32]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [06:05:32]Write i2c OK [06:05:32]MH_I2C_Read... [06:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:32]Read from MH i2c: E2 [06:05:32]MH_I2C_Read... [06:05:32]Read from MH i2c: E2 17 00 [06:05:32]MH_I2C_Read... [06:05:32]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E3 [06:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:05:32]wFMCommunicate OK [06:05:32]requested_item fd.num is exist - process it [06:05:32]SAM_PROTO_GetFieldsCounters [06:05:32]wFMCommunicate request_size=4 [06:05:32]MH_SAM_APDU [06:05:32]CAPDU: 80 13 00 00 [06:05:32]Write to MH i2c: E2 08 00 10 03 80 13 00 00 00 00 00 00 8F [06:05:32]Write i2c OK [06:05:32]MH_I2C_Read... [06:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:32]Read from MH i2c: E2 [06:05:32]MH_I2C_Read... [06:05:32]Read from MH i2c: E2 62 00 [06:05:32]MH_I2C_Read... [06:05:32]Read from MH i2c: E2 62 00 10 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 49 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [06:05: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 49 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:05:32]wFMCommunicate OK [06:05:32]SAM_PROTO_GetFieldsCounters done [06:05:32]requested_item shift.num is exist - process it [06:05:32]requested_item shift.opened is exist - process it [06:05:32]req_shift_opened [06:05:32]FM_GetShiftState [06:05:32]SAM_PROTO_GetShiftState [06:05:32]wFMCommunicate request_size=4 [06:05:32]MH_SAM_APDU [06:05:32]CAPDU: 80 13 01 00 [06:05:32]Write to MH i2c: E2 08 00 11 03 80 13 01 00 00 00 00 00 91 [06:05:32]Write i2c OK [06:05:32]MH_I2C_Read... [06:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:32]Read from MH i2c: E2 [06:05:32]MH_I2C_Read... [06:05:32]Read from MH i2c: E2 0E 00 [06:05:32]MH_I2C_Read... [06:05:32]Read from MH i2c: E2 0E 00 11 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 2D [06:05:32]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:05:32]wFMCommunicate OK [06:05:32]SAM_PROTO_GetShiftState done [06:05:32]FM_GetShiftState done [06:05:32]req_shift_opened done [06:05:32]requested_item shift.open_date is exist - process it [06:05:32]req_shift_open_date [06:05:32]req_shift_open_date done [06:05:32]produce_requested_data done [06:05:32]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60489,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [06:05:32]process_action_free close_receipt [06:05:32]json_value_free [06:05:32]json_value_free done [06:05:32]process_json_proto returns [06:05:32]Send response to host [06:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60489,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [06:05:32]free response buf [06:05:32]execute_script done [06:05:32]execute_script returns [06:05:32]free content buf [06:05:32]Sock 9.Close socket [06:05:32]Sock 9.Thread stoped [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:38]accept exits with 7 [06:15:38]New connection [06:15:38]New thread 3067215204 created [06:15:38]Thread 3067071844 joined [06:15:38]Waiting for new connection... [06:15:38] Sock 7.Parse request [06:15:38]Sock 7.Check first char [06:15:38]Sock 7.First char is OK [06:15:38]request: POST /json_proto HTTP/1.0 [06:15:38]Method: POST [06:15:38]URL: /json_proto [06:15:38]Method is POST - this is cgi request [06:15:38]url: /json_proto [06:15:38]query_string will be loaded in cgi processing [06:15:38]execute_cgi json_proto POST (null) [06:15:38]execute_cgi path=json_proto method=POST [06:15:38]POST find Content-Length [06:15:38]Host: 172.17.42.196:8080 [06:15:38]Content-Length: 687 [06:15:38]Content-Type: application/json [06:15:38] [06:15:38]POST finish read [06:15:38]Found Content-Length = 687 [06:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200133", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:38]execute_script... [06: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 : (3)200133", "tax_sys" : 0, "items" : [ { "code": "4700003010032", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:15:38]POST & json_proto [06:15:38]process_json_proto [06:15:38]json parsed OK: [06:15:38]protocol is kg_v1.0 [06:15:38]action value=close_receipt [06:15:38]process_action close_receipt [06:15:38]cmd_close_receipt [06:15:38]MH_GetDate [06:15:38]Write to MH i2c: F0 00 00 12 03 04 [06:15:38]Write i2c OK [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: F0 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: F0 09 00 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: F0 09 00 12 03 00 8B DA 1D 67 FF C4 6B 64 88 [06:15:38]GetLastDocTimeStamp 1730009129 [06:15:38]current date 1730009739 [06:15:38]FM_GetShiftState [06:15:38]SAM_PROTO_GetShiftState [06:15:38]wFMCommunicate request_size=4 [06:15:38]MH_SAM_APDU [06:15:38]CAPDU: 80 13 01 00 [06:15:38]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [06:15:38]Write i2c OK [06:15:38]MH_I2C_Read... [06:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:38]Read from MH i2c: E2 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: E2 0E 00 [06:15:38]MH_I2C_Read... [06:15:38]Read from MH i2c: E2 0E 00 13 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 2F [06:15:38]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:15:38]wFMCommunicate OK [06:15:38]SAM_PROTO_GetShiftState done [06:15:38]FM_GetShiftState done [06:15:38]opened in 1729989505 [06:15:38]opened+sec_in_day 1730075905 [06:15:38]quantity*price = 5000 [06:15:38]sum+1 = 5001 [06:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 22 27.10.2024 06:15 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60490 ФПД: 55350670306204 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061539&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60490&fm=55350670306204&tin=02508201610067®Number=0000000000091622&sum=5000 0 [06:15:39]StoreToDocumentArchive [06:15:39]shift 532 fd 60490 [06:15:39]save to /storage/0532/doc_00060490 [06:15:39]save last doc name /storage/0532/doc_00060490 to /storage/kkm_last_doc_name [06:15:39]save OK [06:15:39]Clear old archive folders... [06:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=298 [06:15:39]tlvbuf is 0032EAB0 [06:15:39]SAM_PROTO_ClearQueue [06:15:39]wFMCommunicate request_size=4 [06:15:39]MH_SAM_APDU [06:15:39]CAPDU: 80 09 00 00 [06:15:39]Write to MH i2c: E2 08 00 20 03 80 09 00 00 00 00 00 00 95 [06:15:39]Write i2c OK [06:15:39]MH_I2C_Read... [06:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:39]Read from MH i2c: E2 [06:15:39]MH_I2C_Read... [06:15:39]Read from MH i2c: E2 03 00 [06:15:39]MH_I2C_Read... [06:15:39]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [06:15:39]RAPDU: 90 00 [06:15:39]wFMCommunicate OK [06:15:39]SAM_PROTO_ClearQueue done [06:15:39]KKMCreateOFDPacket [06:15:39]OFDProtocolAddRootSTLVToBuf [06:15:39]FM_MakeSignedData [06:15:39]FM_MakeSignedData [06:15:39]SAM_PROTO_SignData [06:15:39]wFMCommunicate request_size=4 [06:15:39]MH_SAM_APDU [06:15:39]CAPDU: 80 0D 01 02 [06:15:39]Write to MH i2c: E2 08 00 21 03 80 0D 01 02 00 00 00 00 9D [06:15:39]Write i2c OK [06:15:39]MH_I2C_Read... [06:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:39]Read from MH i2c: E2 [06:15:39]MH_I2C_Read... [06:15:39]Read from MH i2c: E2 03 00 [06:15:39]MH_I2C_Read... [06:15:39]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [06:15:39]RAPDU: 90 00 [06:15:39]wFMCommunicate OK [06:15:39]wFMCommunicate request_size=255 [06:15:39]MH_SAM_APDU [06:15:39]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 8B DA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [06:15:39]Write to MH i2c: E2 02 01 22 03 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 8B DA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 B2 [06:15:39]Write i2c OK [06:15:39]MH_I2C_Read... [06:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:40]Read from MH i2c: E2 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 03 00 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [06:15:40]RAPDU: 90 00 [06:15:40]wFMCommunicate OK [06:15:40]wFMCommunicate request_size=57 [06:15:40]MH_SAM_APDU [06:15:40]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4A EC 00 00 35 04 06 00 32 57 55 0A AB 9C [06:15:40]Write to MH i2c: E2 3C 00 23 03 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4A EC 00 00 35 04 06 00 32 57 55 0A AB 9C 00 00 C1 [06:15:40]Write i2c OK [06:15:40]MH_I2C_Read... [06:15:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:40]Read from MH i2c: E2 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 03 00 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [06:15:40]RAPDU: 90 00 [06:15:40]wFMCommunicate OK [06:15:40]wFMCommunicate request_size=4 [06:15:40]MH_SAM_APDU [06:15:40]CAPDU: 80 0D 03 02 [06:15:40]Write to MH i2c: E2 08 00 24 03 80 0D 03 02 00 00 00 00 A2 [06:15:40]Write i2c OK [06:15:40]MH_I2C_Read... [06:15:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:40]Read from MH i2c: E2 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 0B 00 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 0B 00 24 03 00 6A 16 3E 5E A4 C3 3A 05 90 00 65 [06:15:40]RAPDU: 6A 16 3E 5E A4 C3 3A 05 90 00 [06:15:40]wFMCommunicate OK [06:15:40]SAM_PROTO_SignData done [06:15:40]FM_MakeSignedData done [06:15:40]CreateOFDProtocolMessage [06:15:40]wFMCommunicate request_size=4 [06:15:40]MH_SAM_APDU [06:15:40]CAPDU: 80 11 00 00 [06:15:40]Write to MH i2c: E2 08 00 25 03 80 11 00 00 00 00 00 00 A2 [06:15:40]Write i2c OK [06:15:40]MH_I2C_Read... [06:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:40]Read from MH i2c: E2 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 17 00 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: E2 17 00 25 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F9 [06:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:15:40]wFMCommunicate OK [06:15:40]CreateOFDProtocolMessage done [06:15:40]OFDSenderStorePacket 60490 [06:15:40]StoreOFDPacket docnum=60490 [06:15:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3E 01 00 00 47 63 36 01 B2 72 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 8B DA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4A EC 00 00 35 04 06 00 32 57 55 0A AB 9C 6A 16 3E 5E A4 C3 3A 05 [06:15:40]CheckFolder [06:15:40]dirname=/storage/ofd_packets [06:15:40]CheckFolder done [06:15:40]ProducePacketName [06:15:40]name=ofd_packets/00060490 [06:15:40]NVStorageSaveData ofd_packets/00060490 [06:15:40]File name is /storage/ofd_packets/00060490 [06:15:40]Write 348 bytes [06:15:40]NVStorageSaveData done [06:15:40]OFDSenderStorePacket done [06:15:40]KKMCreateOFDPacket done [06:15:40]NVStorageSaveData kkm_last_timestamp [06:15:40]File name is /storage/kkm_last_timestamp [06:15:40]Write 4 bytes [06:15:40]NVStorageSaveData done [06:15:40]ExternCall_PrintAddStr [06:15:40]wPrintStart [06:15:40]Write to MH i2c: 01 00 00 26 03 29 [06:15:40]Write i2c OK [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: 01 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: 01 07 00 [06:15:40]MH_I2C_Read... [06:15:40]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [06:15:40]RasterBufferAndPrint [06:15:40]line Счет N : (3)200133 [06:15:40]line ИНН: 02508201610067 [06:15:40]line Контрольно-Кассовый Чек [06:15:40]line ПРОДАЖА [06:15:40]line Товар: 4700003010032 [06:15:40]line Чай хол Let`s Go! чер персик ПЭТ 0,5л [06:15:40]line 1.000 * 50.00 [06:15:40]line = 50.00 [06:15:40]line НДС 12% НСП 1% [06:15:40]line > о реализуемом товаре [06:15:40]line ИТОГО: 50.00 [06:15:40]line НСП 1% : 0.44 [06:15:40]line НДС 12% : 5.31 [06:15:40]line Наличными: 50.00 [06:15:40]line Безнал.: 0.00 [06:15:40]line Место: АЗС № 87 "Партнер Нефть" [06:15:40]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [06:15:40]line СНО: Общий режим [06:15:40]line Чек 22 27.10.2024 06:15 [06:15:40]line Смена: 532 ФФД: 1.0 [06:15:40]line ЗНМ: 0300000084 [06:15:40]line РНМ: 0000000000091622 [06:15:40]line Версия ККМ: 001 [06:15:40]line ФМ: 0000000000874674 [06:15:40]line ФД: 60490 [06:15:40]line ФПД: 55350670306204 [06:15:40]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061539&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60490&fm=55350670306204&tin=02508201610067®Number=0000000000091622&sum=5000 [06:15:40]line 0 [06:15:40]OFD Sender: Processing packet 60490 [packets to send 30, broken 29] [06:15:40]ProducePacketName [06:15:40]name=ofd_packets/00060490 [06:15:40]OFD Sender: To server: pG, [06:15:40]CommunicateWithHost lk.salyk.kg:30040 [06:15:40]ConnectInit lk.salyk.kg [06:15:40]written 0, free lines is 4095 [06:15:40]Connected sock=10 [06: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 36 37 34 3E 01 00 00 47 63 36 01 B2 72 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 33 32 06 04 38 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 8B DA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4A EC 00 00 35 04 06 00 32 57 55 0A AB 9C 6A 16 3E 5E A4 C3 3A 05 [06:15:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F5 67 47 00 41 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 36 37 34 10 04 04 00 4A EC 00 00 F4 03 04 00 73 80 1D 67 B6 04 01 00 00 3D A9 B7 AA F8 BE 6E BC [06:15:41]CommunicateWithHost err = 0 [06:15:41]CheckOFDResponse [06:15:41]1017 (14) - 77093643461234 [06:15:41]1041 (16) - 0000000000874674 [06:15:41]1040 (4) - 60490 [06:15:41]1012 (4) - 26.10.2024 23:51 [06:15:41]1206 (1) - 0 [06:15:41]OFD Sender: Remove packet 60490 [06:15:41]ProducePacketName [06:15:41]name=ofd_packets/00060490 [06:15:41]NVStorageDeleteData [06:15:41]Write to MH i2c: 01 00 00 4F 03 52 [06:15:41]Write i2c OK [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: 01 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: 01 07 00 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 01 0D 67 [06:15:41]RasterBufferAndPrint [06:15:41]line [06:15:41]line [06:15:41]line [06:15:41]line [06:15:41]line [06:15:41]written 0, free lines is 3335 [06:15:41]MH_Cut [06:15:41]Write to MH i2c: D1 01 00 56 03 01 2B [06:15:41]Write i2c OK [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: D1 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: D1 01 00 [06:15:41]MH_I2C_Read... [06:15:41]Read from MH i2c: D1 01 00 56 03 00 2A [06:15:41]Write to MH i2c: 01 00 00 57 03 5A [06:15:41]Write i2c OK [06:15:41]MH_I2C_Read... [06:15:41]OFD Sender: No OFD packet to send [06:15:41]*** Cut start [06:15:41]*** Partial cut [06:15:41]*** CUTSNS_PIN = 1 [06:15:42]*** CUTSNS_PIN = 0 [06:15:42]*** Brake cut motor [06:15:42]Read from MH i2c: 01 [06:15:42]MH_I2C_Read... [06:15:42]*** Stop cut motor [06:15:42]*** Cut end [06:15:42]Read from MH i2c: 01 07 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [06:15:42]process_action close_receipt done [06:15:42]requested_data is exist [06:15:42]produce_requested_data [06:15:42]requested_item fm.sn is exist - process it [06:15:42]wFMCommunicate request_size=4 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 11 00 00 [06:15:42]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 17 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2C [06:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:15:42]wFMCommunicate OK [06:15:42]requested_item fd.num is exist - process it [06:15:42]SAM_PROTO_GetFieldsCounters [06:15:42]wFMCommunicate request_size=4 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 13 00 00 [06:15:42]Write to MH i2c: E2 08 00 59 03 80 13 00 00 00 00 00 00 D8 [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 62 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 62 00 59 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [06: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:15:42]wFMCommunicate OK [06:15:42]SAM_PROTO_GetFieldsCounters done [06:15:42]requested_item shift.num is exist - process it [06:15:42]requested_item shift.opened is exist - process it [06:15:42]req_shift_opened [06:15:42]FM_GetShiftState [06:15:42]SAM_PROTO_GetShiftState [06:15:42]wFMCommunicate request_size=4 [06:15:42]MH_SAM_APDU [06:15:42]CAPDU: 80 13 01 00 [06:15:42]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [06:15:42]Write i2c OK [06:15:42]MH_I2C_Read... [06:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:42]Read from MH i2c: E2 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 0E 00 [06:15:42]MH_I2C_Read... [06:15:42]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 76 [06:15:42]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:15:42]wFMCommunicate OK [06:15:42]SAM_PROTO_GetShiftState done [06:15:42]FM_GetShiftState done [06:15:42]req_shift_opened done [06:15:42]requested_item shift.open_date is exist - process it [06:15:42]req_shift_open_date [06:15:42]req_shift_open_date done [06:15:42]produce_requested_data done [06:15:42]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60490,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [06:15:42]process_action_free close_receipt [06:15:42]json_value_free [06:15:42]json_value_free done [06:15:42]process_json_proto returns [06:15:42]Send response to host [06:15:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60490,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [06:15:42]free response buf [06:15:42]execute_script done [06:15:42]execute_script returns [06:15:42]free content buf [06:15:42]Sock 7.Close socket [06:15:42]Sock 7.Thread stoped [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:19]accept exits with 9 [06:24:19]New connection [06:24:19]New thread 3067071844 created [06:24:19]Thread 3067215204 joined [06:24:19]Waiting for new connection... [06:24:19] Sock 9.Parse request [06:24:19]Sock 9.Check first char [06:24:19]Sock 9.First char is OK [06:24:19]request: POST /json_proto HTTP/1.0 [06:24:19]Method: POST [06:24:19]URL: /json_proto [06:24:19]Method is POST - this is cgi request [06:24:19]url: /json_proto [06:24:19]query_string will be loaded in cgi processing [06:24:19]execute_cgi json_proto POST (null) [06:24:19]execute_cgi path=json_proto method=POST [06:24:19]POST find Content-Length [06:24:19]Host: 172.17.42.196:8080 [06:24:19]Content-Length: 1180 [06:24:19]Content-Type: application/json [06:24:19] [06:24:19]POST finish read [06:24:19]Found Content-Length = 1180 [06:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200134", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:19]execute_script... [06:24:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200134", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:19]POST & json_proto [06:24:19]process_json_proto [06:24:19]json parsed OK: [06:24:19]protocol is kg_v1.0 [06:24:19]action value=close_receipt [06:24:19]process_action close_receipt [06:24:19]cmd_close_receipt [06:24:19]MH_GetDate [06:24:19]Write to MH i2c: F0 00 00 5B 03 4D [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: F0 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: F0 09 00 [06:24:19]MH_I2C_Read... [06:24:19]Read from MH i2c: F0 09 00 5B 03 00 94 DC 1D 67 FF C4 6B 64 DC [06:24:19]GetLastDocTimeStamp 1730009739 [06:24:19]current date 1730010260 [06:24:19]FM_GetShiftState [06:24:19]SAM_PROTO_GetShiftState [06:24:19]wFMCommunicate request_size=4 [06:24:19]MH_SAM_APDU [06:24:19]CAPDU: 80 13 01 00 [06:24:19]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [06:24:19]Write i2c OK [06:24:19]MH_I2C_Read... [06:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:20]Read from MH i2c: E2 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: E2 0E 00 [06:24:20]MH_I2C_Read... [06:24:20]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 78 [06:24:20]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:24:20]wFMCommunicate OK [06:24:20]SAM_PROTO_GetShiftState done [06:24:20]FM_GetShiftState done [06:24:20]opened in 1729989505 [06:24:20]opened+sec_in_day 1730075905 [06:24:20]quantity*price = 12500 [06:24:20]sum+1 = 12501 [06:24:20]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400358 Семечки ДЖИНН 70г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.12 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 23 27.10.2024 06:24 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60491 ФПД: 69535878047059 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062420&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60491&fm=69535878047059&tin=02508201610067®Number=0000000000091622&sum=19900 0 [06:24:21]StoreToDocumentArchive [06:24:21]shift 532 fd 60491 [06:24:21]save to /storage/0532/doc_00060491 [06:24:21]save last doc name /storage/0532/doc_00060491 to /storage/kkm_last_doc_name [06:24:21]save OK [06:24:21]Clear old archive folders... [06:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=494 [06:24:21]tlvbuf is B6F01C90 [06:24:21]SAM_PROTO_ClearQueue [06:24:21]wFMCommunicate request_size=4 [06:24:21]MH_SAM_APDU [06:24:21]CAPDU: 80 09 00 00 [06:24:21]Write to MH i2c: E2 08 00 69 03 80 09 00 00 00 00 00 00 DE [06:24:21]Write i2c OK [06:24:21]MH_I2C_Read... [06:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:21]Read from MH i2c: E2 [06:24:21]MH_I2C_Read... [06:24:21]Read from MH i2c: E2 03 00 [06:24:21]MH_I2C_Read... [06:24:21]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [06:24:21]RAPDU: 90 00 [06:24:21]wFMCommunicate OK [06:24:21]SAM_PROTO_ClearQueue done [06:24:21]KKMCreateOFDPacket [06:24:21]OFDProtocolAddRootSTLVToBuf [06:24:21]FM_MakeSignedData [06:24:21]FM_MakeSignedData [06:24:21]SAM_PROTO_SignData [06:24:21]wFMCommunicate request_size=4 [06:24:21]MH_SAM_APDU [06:24:21]CAPDU: 80 0D 01 02 [06:24:21]Write to MH i2c: E2 08 00 6A 03 80 0D 01 02 00 00 00 00 E6 [06:24:21]Write i2c OK [06:24:21]MH_I2C_Read... [06:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:21]Read from MH i2c: E2 [06:24:21]MH_I2C_Read... [06:24:21]Read from MH i2c: E2 03 00 [06:24:21]MH_I2C_Read... [06:24:21]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [06:24:21]RAPDU: 90 00 [06:24:21]wFMCommunicate OK [06:24:21]wFMCommunicate request_size=255 [06:24:21]MH_SAM_APDU [06:24:21]CAPDU: 80 0D 02 02 FA 03 00 EE 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 [06:24:21]Write to MH i2c: E2 02 01 6B 03 80 0D 02 02 FA 00 03 00 EE 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 00 00 68 [06:24:21]Write i2c OK [06:24:21]MH_I2C_Read... [06:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:21]Read from MH i2c: E2 [06:24:21]MH_I2C_Read... [06:24:21]Read from MH i2c: E2 03 00 [06:24:21]MH_I2C_Read... [06:24:21]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [06:24:21]RAPDU: 90 00 [06:24:21]wFMCommunicate OK [06:24:21]wFMCommunicate request_size=253 [06:24:21]MH_SAM_APDU [06:24:21]CAPDU: 80 0D 02 02 F8 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 DC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4B EC 00 00 35 04 06 00 3F 3E 15 4F 65 53 [06:24:21]Write to MH i2c: E2 00 01 6C 03 80 0D 02 02 F8 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 DC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4B EC 00 00 35 04 06 00 3F 3E 15 4F 65 53 00 00 C0 [06:24:21]Write i2c OK [06:24:21]MH_I2C_Read... [06:24:22]OFD Sender: No OFD packet to send [06:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:22]Read from MH i2c: E2 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 03 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [06:24:22]RAPDU: 90 00 [06:24:22]wFMCommunicate OK [06:24:22]wFMCommunicate request_size=4 [06:24:22]MH_SAM_APDU [06:24:22]CAPDU: 80 0D 03 02 [06:24:22]Write to MH i2c: E2 08 00 6D 03 80 0D 03 02 00 00 00 00 EB [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:22]Read from MH i2c: E2 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 0B 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 0B 00 6D 03 00 30 1E 0A 72 31 66 95 03 90 00 E5 [06:24:22]RAPDU: 30 1E 0A 72 31 66 95 03 90 00 [06:24:22]wFMCommunicate OK [06:24:22]SAM_PROTO_SignData done [06:24:22]FM_MakeSignedData done [06:24:22]CreateOFDProtocolMessage [06:24:22]wFMCommunicate request_size=4 [06:24:22]MH_SAM_APDU [06:24:22]CAPDU: 80 11 00 00 [06:24:22]Write to MH i2c: E2 08 00 6E 03 80 11 00 00 00 00 00 00 EB [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:22]Read from MH i2c: E2 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 17 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: E2 17 00 6E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 42 [06:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:24:22]wFMCommunicate OK [06:24:22]CreateOFDProtocolMessage done [06:24:22]OFDSenderStorePacket 60491 [06:24:22]StoreOFDPacket docnum=60491 [06:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 02 02 00 00 6E DF FA 01 E3 B9 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 DC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4B EC 00 00 35 04 06 00 3F 3E 15 4F 65 53 30 1E 0A 72 31 66 95 03 [06:24:22]CheckFolder [06:24:22]dirname=/storage/ofd_packets [06:24:22]CheckFolder done [06:24:22]ProducePacketName [06:24:22]name=ofd_packets/00060491 [06:24:22]NVStorageSaveData ofd_packets/00060491 [06:24:22]File name is /storage/ofd_packets/00060491 [06:24:22]Write 544 bytes [06:24:22]NVStorageSaveData done [06:24:22]OFDSenderStorePacket done [06:24:22]KKMCreateOFDPacket done [06:24:22]NVStorageSaveData kkm_last_timestamp [06:24:22]File name is /storage/kkm_last_timestamp [06:24:22]Write 4 bytes [06:24:22]NVStorageSaveData done [06:24:22]ExternCall_PrintAddStr [06:24:22]wPrintStart [06:24:22]Write to MH i2c: 01 00 00 6F 03 72 [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: 01 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: 01 07 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [06:24:22]RasterBufferAndPrint [06:24:22]line Счет N : (3)200134 [06:24:22]line ИНН: 02508201610067 [06:24:22]line Контрольно-Кассовый Чек [06:24:22]line ПРОДАЖА [06:24:22]line Товар: 2000036190018 [06:24:22]line Кофе Американо XL(GABB TRADE) [06:24:22]line 1.000 * 125.00 [06:24:22]line = 125.00 [06:24:22]line НДС 12% НСП 1% [06:24:22]line > о реализуемом товаре [06:24:22]line Товар: 4630007400358 [06:24:22]line Семечки ДЖИНН 70г [06:24:22]line 1.000 * 70.00 [06:24:22]line = 70.00 [06:24:22]line НДС 12% НСП 1% [06:24:22]line > о реализуемом товаре [06:24:22]line Товар: 2000031750019 [06:24:22]line Пакет Партнер Нефть [06:24:22]line 1.000 * 4.00 [06:24:22]line = 4.00 [06:24:22]line НДС 12% НСП 1% [06:24:22]line > о реализуемом товаре [06:24:22]line ИТОГО: 199.00 [06:24:22]line НСП 1% : 1.76 [06:24:22]line НДС 12% : 21.12 [06:24:22]line Наличными: 199.00 [06:24:22]line Безнал.: 0.00 [06:24:22]line Место: АЗС № 87 "Партнер Нефть" [06:24:22]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [06:24:22]line СНО: Общий режим [06:24:22]line Чек 23 27.10.2024 06:24 [06:24:22]line Смена: 532 ФФД: 1.0 [06:24:22]line ЗНМ: 0300000084 [06:24:22]line РНМ: 0000000000091622 [06:24:22]line Версия ККМ: 001 [06:24:22]line ФМ: 0000000000874674 [06:24:22]line ФД: 60491 [06:24:22]line ФПД: 69535878047059 [06:24:22]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T062420&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60491&fm=69535878047059&tin=02508201610067®Number=0000000000091622&sum=19900 [06:24:22]line 0 [06:24:22]written 0, free lines is 4095 [06:24:22]OFD Sender: Processing packet 60491 [packets to send 30, broken 29] [06:24:22]ProducePacketName [06:24:22]name=ofd_packets/00060491 [06:24:22]OFD Sender: To server: pG, [06:24:22]CommunicateWithHost lk.salyk.kg:30040 [06:24:22]ConnectInit lk.salyk.kg [06:24:22]Connected sock=10 [06:24: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 36 37 34 02 02 00 00 6E DF FA 01 E3 B9 5A 03 01 00 03 00 EE 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 DC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4B EC 00 00 35 04 06 00 3F 3E 15 4F 65 53 30 1E 0A 72 31 66 95 03 [06:24:22]Write to MH i2c: 01 00 00 A4 03 A7 [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: 01 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: 01 07 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 2F 0C E9 [06:24:22]RasterBufferAndPrint [06:24:22]line [06:24:22]line [06:24:22]line [06:24:22]line [06:24:22]line [06:24:22]written 0, free lines is 3125 [06:24:22]MH_Cut [06:24:22]Write to MH i2c: D1 01 00 AB 03 01 80 [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: D1 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: D1 01 00 [06:24:22]MH_I2C_Read... [06:24:22]Read from MH i2c: D1 01 00 AB 03 00 7F [06:24:22]Write to MH i2c: 01 00 00 AC 03 AF [06:24:22]Write i2c OK [06:24:22]MH_I2C_Read... [06:24:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 22 E3 47 00 89 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 36 37 34 10 04 04 00 4B EC 00 00 F4 03 04 00 7D 82 1D 67 B6 04 01 00 00 92 9D 6F ED FC 0E 08 71 [06:24:22]CommunicateWithHost err = 0 [06:24:22]CheckOFDResponse [06:24:22]1017 (14) - 77093643461234 [06:24:22]1041 (16) - 0000000000874674 [06:24:22]1040 (4) - 60491 [06:24:22]1012 (4) - 26.10.2024 23:59 [06:24:22]1206 (1) - 0 [06:24:22]OFD Sender: Remove packet 60491 [06:24:22]ProducePacketName [06:24:22]name=ofd_packets/00060491 [06:24:22]NVStorageDeleteData [06:24:23]OFD Sender: No OFD packet to send [06:24:23]*** Cut start [06:24:23]*** Partial cut [06:24:23]*** CUTSNS_PIN = 1 [06:24:23]*** CUTSNS_PIN = 0 [06:24:24]*** Brake cut motor [06:24:24]Read from MH i2c: 01 [06:24:24]MH_I2C_Read... [06:24:24]*** Stop cut motor [06:24:24]*** Cut end [06:24:24]Read from MH i2c: 01 07 00 [06:24:24]MH_I2C_Read... [06:24:24]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [06:24:24]process_action close_receipt done [06:24:24]requested_data is exist [06:24:24]produce_requested_data [06:24:24]requested_item fm.sn is exist - process it [06:24:24]wFMCommunicate request_size=4 [06:24:24]MH_SAM_APDU [06:24:24]CAPDU: 80 11 00 00 [06:24:24]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [06:24:24]Write i2c OK [06:24:24]MH_I2C_Read... [06:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:24]Read from MH i2c: E2 [06:24:24]MH_I2C_Read... [06:24:24]Read from MH i2c: E2 17 00 [06:24:24]MH_I2C_Read... [06:24:24]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 81 [06:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:24:24]wFMCommunicate OK [06:24:24]requested_item fd.num is exist - process it [06:24:24]SAM_PROTO_GetFieldsCounters [06:24:24]wFMCommunicate request_size=4 [06:24:24]MH_SAM_APDU [06:24:24]CAPDU: 80 13 00 00 [06:24:24]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [06:24:24]Write i2c OK [06:24:24]MH_I2C_Read... [06:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:24]Read from MH i2c: E2 [06:24:24]MH_I2C_Read... [06:24:24]Read from MH i2c: E2 62 00 [06:24:24]MH_I2C_Read... [06:24:24]Read from MH i2c: E2 62 00 AE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [06:24: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:24:24]wFMCommunicate OK [06:24:24]SAM_PROTO_GetFieldsCounters done [06:24:24]requested_item shift.num is exist - process it [06:24:24]requested_item shift.opened is exist - process it [06:24:24]req_shift_opened [06:24:24]FM_GetShiftState [06:24:24]SAM_PROTO_GetShiftState [06:24:24]wFMCommunicate request_size=4 [06:24:24]MH_SAM_APDU [06:24:24]CAPDU: 80 13 01 00 [06:24:24]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [06:24:24]Write i2c OK [06:24:24]MH_I2C_Read... [06:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:24]Read from MH i2c: E2 [06:24:24]MH_I2C_Read... [06:24:24]Read from MH i2c: E2 0E 00 [06:24:24]MH_I2C_Read... [06:24:24]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CB [06:24:24]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:24:24]wFMCommunicate OK [06:24:24]SAM_PROTO_GetShiftState done [06:24:24]FM_GetShiftState done [06:24:24]req_shift_opened done [06:24:24]requested_item shift.open_date is exist - process it [06:24:24]req_shift_open_date [06:24:24]req_shift_open_date done [06:24:24]produce_requested_data done [06:24:24]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60491,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [06:24:24]process_action_free close_receipt [06:24:24]json_value_free [06:24:24]json_value_free done [06:24:24]process_json_proto returns [06:24:24]Send response to host [06:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60491,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [06:24:24]free response buf [06:24:24]execute_script done [06:24:24]execute_script returns [06:24:24]free content buf [06:24:24]Sock 9.Close socket [06:24:24]Sock 9.Thread stoped [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35: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:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:05]accept exits with 7 [06:50:05]New connection [06:50:05]New thread 3067215204 created [06:50:05]Thread 3067071844 joined [06:50:05]Waiting for new connection... [06:50:05] Sock 7.Parse request [06:50:05]Sock 7.Check first char [06:50:05]Sock 7.First char is OK [06:50:05]request: POST /json_proto HTTP/1.0 [06:50:05]Method: POST [06:50:05]URL: /json_proto [06:50:05]Method is POST - this is cgi request [06:50:05]url: /json_proto [06:50:05]query_string will be loaded in cgi processing [06:50:05]execute_cgi json_proto POST (null) [06:50:05]execute_cgi path=json_proto method=POST [06:50:05]POST find Content-Length [06:50:05]Host: 172.17.42.196:8080 [06:50:05]Content-Length: 957 [06:50:05]Content-Type: application/json [06:50:05] [06:50:05]POST finish read [06:50:05]Found Content-Length = 957 [06:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200135", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 94.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:05]execute_script... [06: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 : (3)200135", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 94.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:05]POST & json_proto [06:50:05]process_json_proto [06:50:05]json parsed OK: [06:50:05]protocol is kg_v1.0 [06:50:05]action value=close_receipt [06:50:05]process_action close_receipt [06:50:05]cmd_close_receipt [06:50:05]MH_GetDate [06:50:05]Write to MH i2c: F0 00 00 B0 03 A2 [06:50:05]Write i2c OK [06:50:05]MH_I2C_Read... [06:50:05]Read from MH i2c: F0 [06:50:05]MH_I2C_Read... [06:50:05]Read from MH i2c: F0 09 00 [06:50:05]MH_I2C_Read... [06:50:05]Read from MH i2c: F0 09 00 B0 03 00 9E E2 1D 67 FF C4 6B 64 41 [06:50:05]GetLastDocTimeStamp 1730010260 [06:50:05]current date 1730011806 [06:50:05]FM_GetShiftState [06:50:05]SAM_PROTO_GetShiftState [06:50:05]wFMCommunicate request_size=4 [06:50:05]MH_SAM_APDU [06:50:05]CAPDU: 80 13 01 00 [06:50:05]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [06:50:05]Write i2c OK [06:50:05]MH_I2C_Read... [06:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:05]Read from MH i2c: E2 [06:50:05]MH_I2C_Read... [06:50:05]Read from MH i2c: E2 0E 00 [06:50:05]MH_I2C_Read... [06:50:05]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CD [06:50:05]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:50:05]wFMCommunicate OK [06:50:05]SAM_PROTO_GetShiftState done [06:50:05]FM_GetShiftState done [06:50:05]opened in 1729989505 [06:50:05]opened+sec_in_day 1730075905 [06:50:05]quantity*price = 7900 [06:50:05]sum+1 = 7901 [06:50:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160884 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 94.00 НСП 1% : 0.83 НДС 12% : 9.98 Наличными: 94.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 24 27.10.2024 06:50 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60492 ФПД: 118247946066905 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065006&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60492&fm=118247946066905&tin=02508201610067®Number=0000000000091622&sum=9400 0 [06:50:06]StoreToDocumentArchive [06:50:06]shift 532 fd 60492 [06:50:06]save to /storage/0532/doc_00060492 [06:50:07]save last doc name /storage/0532/doc_00060492 to /storage/kkm_last_doc_name [06:50:07]save OK [06:50:07]Clear old archive folders... [06:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=396 [06:50:07]tlvbuf is 00305A90 [06:50:07]SAM_PROTO_ClearQueue [06:50:07]wFMCommunicate request_size=4 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 09 00 00 [06:50:07]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [06:50:07]RAPDU: 90 00 [06:50:07]wFMCommunicate OK [06:50:07]SAM_PROTO_ClearQueue done [06:50:07]KKMCreateOFDPacket [06:50:07]OFDProtocolAddRootSTLVToBuf [06:50:07]FM_MakeSignedData [06:50:07]FM_MakeSignedData [06:50:07]SAM_PROTO_SignData [06:50:07]wFMCommunicate request_size=4 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 0D 01 02 [06:50:07]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [06:50:07]RAPDU: 90 00 [06:50:07]wFMCommunicate OK [06:50:07]wFMCommunicate request_size=255 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 24 00 00 00 00 EB 03 26 00 EF [06:50:07]Write to MH i2c: E2 02 01 C0 03 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 24 00 00 00 00 EB 03 26 00 EF 00 00 1D [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [06:50:07]RAPDU: 90 00 [06:50:07]wFMCommunicate OK [06:50:07]wFMCommunicate request_size=155 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 03 00 00 00 00 07 04 06 00 B8 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E E2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4C EC 00 00 35 04 06 00 6B 8B BE D2 1B D9 [06:50:07]Write to MH i2c: E2 9E 00 C1 03 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 03 00 00 00 00 07 04 06 00 B8 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E E2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4C EC 00 00 35 04 06 00 6B 8B BE D2 1B D9 00 00 9F [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [06:50:07]RAPDU: 90 00 [06:50:07]wFMCommunicate OK [06:50:07]wFMCommunicate request_size=4 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 0D 03 02 [06:50:07]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 0B 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 0B 00 C2 03 00 C3 7B FA 54 35 AE C4 6D 90 00 E1 [06:50:07]RAPDU: C3 7B FA 54 35 AE C4 6D 90 00 [06:50:07]wFMCommunicate OK [06:50:07]SAM_PROTO_SignData done [06:50:07]FM_MakeSignedData done [06:50:07]CreateOFDProtocolMessage [06:50:07]wFMCommunicate request_size=4 [06:50:07]MH_SAM_APDU [06:50:07]CAPDU: 80 11 00 00 [06:50:07]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:07]Read from MH i2c: E2 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 17 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 97 [06:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:50:07]wFMCommunicate OK [06:50:07]CreateOFDProtocolMessage done [06:50:07]OFDSenderStorePacket 60492 [06:50:07]StoreOFDPacket docnum=60492 [06:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 A0 01 00 00 38 BD 98 01 91 29 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 03 00 00 00 00 07 04 06 00 B8 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E E2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4C EC 00 00 35 04 06 00 6B 8B BE D2 1B D9 C3 7B FA 54 35 AE C4 6D [06:50:07]CheckFolder [06:50:07]dirname=/storage/ofd_packets [06:50:07]CheckFolder done [06:50:07]ProducePacketName [06:50:07]name=ofd_packets/00060492 [06:50:07]NVStorageSaveData ofd_packets/00060492 [06:50:07]File name is /storage/ofd_packets/00060492 [06:50:07]Write 446 bytes [06:50:07]NVStorageSaveData done [06:50:07]OFDSenderStorePacket done [06:50:07]KKMCreateOFDPacket done [06:50:07]NVStorageSaveData kkm_last_timestamp [06:50:07]File name is /storage/kkm_last_timestamp [06:50:07]Write 4 bytes [06:50:07]NVStorageSaveData done [06:50:07]ExternCall_PrintAddStr [06:50:07]wPrintStart [06:50:07]Write to MH i2c: 01 00 00 C4 03 C7 [06:50:07]Write i2c OK [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: 01 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: 01 07 00 [06:50:07]MH_I2C_Read... [06:50:07]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [06:50:07]RasterBufferAndPrint [06:50:07]line Счет N : (3)200135 [06:50:07]line ИНН: 02508201610067 [06:50:07]line Контрольно-Кассовый Чек [06:50:07]line ПРОДАЖА [06:50:07]line Товар: 4700000310043 [06:50:07]line Вода Жалалабат 27 1л [06:50:07]line 1.000 * 79.00 [06:50:07]line = 79.00 [06:50:07]line НДС 12% НСП 1% [06:50:07]line > о реализуемом товаре [06:50:07]line Товар: 4700000160884 [06:50:07]line Снек Курут индивидуальный [06:50:07]line 1.000 * 15.00 [06:50:07]line = 15.00 [06:50:07]line НДС 12% НСП 1% [06:50:07]line > о реализуемом товаре [06:50:07]line ИТОГО: 94.00 [06:50:07]line НСП 1% : 0.83 [06:50:07]line НДС 12% : 9.98 [06:50:07]line Наличными: 94.00 [06:50:07]line Безнал.: 0.00 [06:50:07]line Место: АЗС № 87 "Партнер Нефть" [06:50:07]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [06:50:07]line СНО: Общий режим [06:50:07]line Чек 24 27.10.2024 06:50 [06:50:07]line Смена: 532 ФФД: 1.0 [06:50:07]line ЗНМ: 0300000084 [06:50:07]line РНМ: 0000000000091622 [06:50:07]line Версия ККМ: 001 [06:50:07]line ФМ: 0000000000874674 [06:50:07]line ФД: 60492 [06:50:07]line ФПД: 118247946066905 [06:50:07]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065006&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60492&fm=118247946066905&tin=02508201610067®Number=0000000000091622&sum=9400 [06:50:07]line 0 [06:50:08]OFD Sender: Processing packet 60492 [packets to send 30, broken 29] [06:50:08]ProducePacketName [06:50:08]name=ofd_packets/00060492 [06:50:08]OFD Sender: To server: pG, [06:50:08]CommunicateWithHost lk.salyk.kg:30040 [06:50:08]ConnectInit lk.salyk.kg [06:50:08]written 0, free lines is 4095 [06:50:08]Connected sock=10 [06:50: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 36 37 34 A0 01 00 00 38 BD 98 01 91 29 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 03 00 00 00 00 07 04 06 00 B8 24 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E E2 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4C EC 00 00 35 04 06 00 6B 8B BE D2 1B D9 C3 7B FA 54 35 AE C4 6D [06:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 BB 94 47 00 4E 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 36 37 34 10 04 04 00 4C EC 00 00 F4 03 04 00 87 88 1D 67 B6 04 01 00 00 67 D6 68 07 9F DD 4B 85 [06:50:08]CommunicateWithHost err = 0 [06:50:08]CheckOFDResponse [06:50:08]1017 (14) - 77093643461234 [06:50:08]1041 (16) - 0000000000874674 [06:50:08]1040 (4) - 60492 [06:50:08]1012 (4) - 27.10.2024 00:25 [06:50:08]1206 (1) - 0 [06:50:08]OFD Sender: Remove packet 60492 [06:50:08]ProducePacketName [06:50:08]name=ofd_packets/00060492 [06:50:08]NVStorageDeleteData [06:50:08]Write to MH i2c: 01 00 00 F2 03 F5 [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: 01 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: 01 07 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: 01 07 00 F2 03 00 00 00 00 00 95 0C 9D [06:50:08]RasterBufferAndPrint [06:50:08]line [06:50:08]line [06:50:08]line [06:50:08]line [06:50:08]line [06:50:08]written 0, free lines is 3228 [06:50:08]MH_Cut [06:50:08]Write to MH i2c: D1 01 00 F9 03 01 CE [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: D1 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: D1 01 00 [06:50:08]MH_I2C_Read... [06:50:08]Read from MH i2c: D1 01 00 F9 03 00 CD [06:50:08]Write to MH i2c: 01 00 00 FA 03 FD [06:50:08]Write i2c OK [06:50:08]MH_I2C_Read... [06:50:08]OFD Sender: No OFD packet to send [06:50:09]*** Cut start [06:50:09]*** Partial cut [06:50:09]*** CUTSNS_PIN = 1 [06:50:09]*** CUTSNS_PIN = 0 [06:50:09]*** Brake cut motor [06:50:09]Read from MH i2c: 01 [06:50:09]MH_I2C_Read... [06:50:09]*** Stop cut motor [06:50:09]*** Cut end [06:50:09]Read from MH i2c: 01 07 00 [06:50:09]MH_I2C_Read... [06:50:09]Read from MH i2c: 01 07 00 FA 03 00 00 00 00 00 FF 0F 12 [06:50:09]process_action close_receipt done [06:50:09]requested_data is exist [06:50:09]produce_requested_data [06:50:09]requested_item fm.sn is exist - process it [06:50:09]wFMCommunicate request_size=4 [06:50:09]MH_SAM_APDU [06:50:09]CAPDU: 80 11 00 00 [06:50:09]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [06:50:09]Write i2c OK [06:50:09]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 17 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CF [06:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:50:10]wFMCommunicate OK [06:50:10]requested_item fd.num is exist - process it [06:50:10]SAM_PROTO_GetFieldsCounters [06:50:10]wFMCommunicate request_size=4 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 13 00 00 [06:50:10]Write to MH i2c: E2 08 00 FC 03 80 13 00 00 00 00 00 00 7B [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 62 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 62 00 FC 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [06:50: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:50:10]wFMCommunicate OK [06:50:10]SAM_PROTO_GetFieldsCounters done [06:50:10]requested_item shift.num is exist - process it [06:50:10]requested_item shift.opened is exist - process it [06:50:10]req_shift_opened [06:50:10]FM_GetShiftState [06:50:10]SAM_PROTO_GetShiftState [06:50:10]wFMCommunicate request_size=4 [06:50:10]MH_SAM_APDU [06:50:10]CAPDU: 80 13 01 00 [06:50:10]Write to MH i2c: E2 08 00 FD 03 80 13 01 00 00 00 00 00 7D [06:50:10]Write i2c OK [06:50:10]MH_I2C_Read... [06:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:10]Read from MH i2c: E2 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 0E 00 [06:50:10]MH_I2C_Read... [06:50:10]Read from MH i2c: E2 0E 00 FD 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 19 [06:50:10]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:50:10]wFMCommunicate OK [06:50:10]SAM_PROTO_GetShiftState done [06:50:10]FM_GetShiftState done [06:50:10]req_shift_opened done [06:50:10]requested_item shift.open_date is exist - process it [06:50:10]req_shift_open_date [06:50:10]req_shift_open_date done [06:50:10]produce_requested_data done [06:50:10]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60492,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [06:50:10]process_action_free close_receipt [06:50:10]json_value_free [06:50:10]json_value_free done [06:50:10]process_json_proto returns [06:50:10]Send response to host [06:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60492,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [06:50:10]free response buf [06:50:10]execute_script done [06:50:10]execute_script returns [06:50:10]free content buf [06:50:10]Sock 7.Close socket [06:50:10]Sock 7.Thread stoped [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:22]accept exits with 9 [06:59:22]New connection [06:59:22]New thread 3067071844 created [06:59:22]Thread 3067215204 joined [06:59:22]Waiting for new connection... [06:59:22] Sock 9.Parse request [06:59:22]Sock 9.Check first char [06:59:22]Sock 9.First char is OK [06:59:22]request: POST /json_proto HTTP/1.0 [06:59:22]Method: POST [06:59:22]URL: /json_proto [06:59:22]Method is POST - this is cgi request [06:59:22]url: /json_proto [06:59:22]query_string will be loaded in cgi processing [06:59:22]execute_cgi json_proto POST (null) [06:59:22]execute_cgi path=json_proto method=POST [06:59:22]POST find Content-Length [06:59:22]Host: 172.17.42.196:8080 [06:59:22]Content-Length: 1393 [06:59:22]Content-Type: application/json [06:59:22] [06:59:22]POST finish read [06:59:22]Found Content-Length = 1393 [06:59:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200136", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 5.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 389.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:22]execute_script... [06:59:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200136", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 5.000, "sum" : 325.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 389.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:22]POST & json_proto [06:59:22]process_json_proto [06:59:22]json parsed OK: [06:59:22]protocol is kg_v1.0 [06:59:22]action value=close_receipt [06:59:22]process_action close_receipt [06:59:22]cmd_close_receipt [06:59:22]MH_GetDate [06:59:22]Write to MH i2c: F0 00 00 FE 03 F0 [06:59:22]Write i2c OK [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: F0 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: F0 09 00 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: F0 09 00 FE 03 00 CB E4 1D 67 FF C4 6B 64 BE [06:59:22]GetLastDocTimeStamp 1730011806 [06:59:22]current date 1730012363 [06:59:22]FM_GetShiftState [06:59:22]SAM_PROTO_GetShiftState [06:59:22]wFMCommunicate request_size=4 [06:59:22]MH_SAM_APDU [06:59:22]CAPDU: 80 13 01 00 [06:59:22]Write to MH i2c: E2 08 00 FF 03 80 13 01 00 00 00 00 00 7F [06:59:22]Write i2c OK [06:59:22]MH_I2C_Read... [06:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:22]Read from MH i2c: E2 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: E2 0E 00 [06:59:22]MH_I2C_Read... [06:59:22]Read from MH i2c: E2 0E 00 FF 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 1B [06:59:22]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:59:22]wFMCommunicate OK [06:59:22]SAM_PROTO_GetShiftState done [06:59:22]FM_GetShiftState done [06:59:22]opened in 1729989505 [06:59:22]opened+sec_in_day 1730075905 [06:59:23]quantity*price = 32500 [06:59:23]sum+1 = 32501 [06:59:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 389.00 НСП 1% : 3.44 НДС 12% : 41.30 Наличными: 0.00 Безнал.: 389.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 25 27.10.2024 06:59 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60493 ФПД: 102410001435031 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065924&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60493&fm=102410001435031&tin=02508201610067®Number=0000000000091622&sum=38900 0 [06:59:24]StoreToDocumentArchive [06:59:24]shift 532 fd 60493 [06:59:24]save to /storage/0532/doc_00060493 [06:59:24]save last doc name /storage/0532/doc_00060493 to /storage/kkm_last_doc_name [06:59:24]save OK [06:59:24]Clear old archive folders... [06:59:24]ProcessDocumentItem done err = 0, tmpTLVsize=513 [06:59:24]tlvbuf is 002DA1E0 [06:59:24]SAM_PROTO_ClearQueue [06:59:24]wFMCommunicate request_size=4 [06:59:24]MH_SAM_APDU [06:59:24]CAPDU: 80 09 00 00 [06:59:24]Write to MH i2c: E2 08 00 0C 04 80 09 00 00 00 00 00 00 82 [06:59:24]Write i2c OK [06:59:24]MH_I2C_Read... [06:59:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:24]Read from MH i2c: E2 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 0C 04 00 90 00 84 [06:59:24]RAPDU: 90 00 [06:59:24]wFMCommunicate OK [06:59:24]SAM_PROTO_ClearQueue done [06:59:24]KKMCreateOFDPacket [06:59:24]OFDProtocolAddRootSTLVToBuf [06:59:24]FM_MakeSignedData [06:59:24]FM_MakeSignedData [06:59:24]SAM_PROTO_SignData [06:59:24]wFMCommunicate request_size=4 [06:59:24]MH_SAM_APDU [06:59:24]CAPDU: 80 0D 01 02 [06:59:24]Write to MH i2c: E2 08 00 0D 04 80 0D 01 02 00 00 00 00 8A [06:59:24]Write i2c OK [06:59:24]MH_I2C_Read... [06:59:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:24]Read from MH i2c: E2 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 0D 04 00 90 00 85 [06:59:24]RAPDU: 90 00 [06:59:24]wFMCommunicate OK [06:59:24]wFMCommunicate request_size=255 [06:59:24]MH_SAM_APDU [06:59:24]CAPDU: 80 0D 02 02 FA 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 [06:59:24]Write to MH i2c: E2 02 01 0E 04 80 0D 02 02 FA 00 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 00 00 AF [06:59:24]OFD Sender: No OFD packet to send [06:59:24]Write i2c OK [06:59:24]MH_I2C_Read... [06:59:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:24]Read from MH i2c: E2 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 [06:59:24]MH_I2C_Read... [06:59:24]Read from MH i2c: E2 03 00 0E 04 00 90 00 86 [06:59:24]RAPDU: 90 00 [06:59:24]wFMCommunicate OK [06:59:24]wFMCommunicate request_size=255 [06:59:24]MH_SAM_APDU [06:59:24]CAPDU: 80 0D 02 02 FA 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 97 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CC E4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 [06:59:24]Write to MH i2c: E2 02 01 0F 04 80 0D 02 02 FA 00 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 97 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CC E4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 00 00 F1 [06:59:24]Write i2c OK [06:59:24]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 0F 04 00 90 00 87 [06:59:25]RAPDU: 90 00 [06:59:25]wFMCommunicate OK [06:59:25]wFMCommunicate request_size=22 [06:59:25]MH_SAM_APDU [06:59:25]CAPDU: 80 0D 02 02 11 04 04 00 4D EC 00 00 35 04 06 00 5D 24 2F C1 C9 97 [06:59:25]Write to MH i2c: E2 19 00 10 04 80 0D 02 02 11 00 04 04 00 4D EC 00 00 35 04 06 00 5D 24 2F C1 C9 97 00 00 01 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [06:59:25]RAPDU: 90 00 [06:59:25]wFMCommunicate OK [06:59:25]wFMCommunicate request_size=4 [06:59:25]MH_SAM_APDU [06:59:25]CAPDU: 80 0D 03 02 [06:59:25]Write to MH i2c: E2 08 00 11 04 80 0D 03 02 00 00 00 00 90 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 0B 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 0B 00 11 04 00 5A 2F 15 B2 13 F5 3A 0C 90 00 2F [06:59:25]RAPDU: 5A 2F 15 B2 13 F5 3A 0C 90 00 [06:59:25]wFMCommunicate OK [06:59:25]SAM_PROTO_SignData done [06:59:25]FM_MakeSignedData done [06:59:25]CreateOFDProtocolMessage [06:59:25]wFMCommunicate request_size=4 [06:59:25]MH_SAM_APDU [06:59:25]CAPDU: 80 11 00 00 [06:59:25]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:25]Read from MH i2c: E2 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 17 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E7 [06:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:59:25]wFMCommunicate OK [06:59:25]CreateOFDProtocolMessage done [06:59:25]OFDSenderStorePacket 60493 [06:59:25]StoreOFDPacket docnum=60493 [06:59:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 15 02 00 00 CC 17 0D 02 13 D7 5A 03 01 00 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 97 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CC E4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4D EC 00 00 35 04 06 00 5D 24 2F C1 C9 97 5A 2F 15 B2 13 F5 3A 0C [06:59:25]CheckFolder [06:59:25]dirname=/storage/ofd_packets [06:59:25]CheckFolder done [06:59:25]ProducePacketName [06:59:25]name=ofd_packets/00060493 [06:59:25]NVStorageSaveData ofd_packets/00060493 [06:59:25]File name is /storage/ofd_packets/00060493 [06:59:25]Write 563 bytes [06:59:25]NVStorageSaveData done [06:59:25]OFDSenderStorePacket done [06:59:25]KKMCreateOFDPacket done [06:59:25]NVStorageSaveData kkm_last_timestamp [06:59:25]File name is /storage/kkm_last_timestamp [06:59:25]Write 4 bytes [06:59:25]NVStorageSaveData done [06:59:25]ExternCall_PrintAddStr [06:59:25]wPrintStart [06:59:25]Write to MH i2c: 01 00 00 13 04 17 [06:59:25]Write i2c OK [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 07 00 [06:59:25]MH_I2C_Read... [06:59:25]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 FF 0F 2C [06:59:25]RasterBufferAndPrint [06:59:25]line Счет N : (3)200136 [06:59:25]line ИНН: 02508201610067 [06:59:25]line Контрольно-Кассовый Чек [06:59:25]line ПРОДАЖА [06:59:25]line Товар: 47011656 [06:59:25]line Водка Пшеничная 0,1л [06:59:25]line 5.000 * 65.00 [06:59:25]line = 325.00 [06:59:25]line НДС 12% НСП 1% [06:59:25]line > о реализуемом товаре [06:59:25]line Товар: 4700000160792 [06:59:25]line Снек Курут классический (круглый) [06:59:25]line 1.000 * 60.00 [06:59:25]line = 60.00 [06:59:25]line НДС 12% НСП 1% [06:59:25]line > о реализуемом товаре [06:59:25]line Товар: 2000031750019 [06:59:25]line Пакет Партнер Нефть [06:59:25]line 1.000 * 4.00 [06:59:25]line = 4.00 [06:59:25]line НДС 12% НСП 1% [06:59:25]line > о реализуемом товаре [06:59:25]line ИТОГО: 389.00 [06:59:25]line НСП 1% : 3.44 [06:59:25]line НДС 12% : 41.30 [06:59:25]line Наличными: 0.00 [06:59:25]line Безнал.: 389.00 [06:59:25]line Место: АЗС № 87 "Партнер Нефть" [06:59:25]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [06:59:25]line СНО: Общий режим [06:59:25]line Чек 25 27.10.2024 06:59 [06:59:25]line Смена: 532 ФФД: 1.0 [06:59:25]line ЗНМ: 0300000084 [06:59:25]line РНМ: 0000000000091622 [06:59:25]line Версия ККМ: 001 [06:59:25]line Платежная система: Mbank [06:59:25]line ФМ: 0000000000874674 [06:59:25]line ФД: 60493 [06:59:25]line ФПД: 102410001435031 [06:59:25]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T065924&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60493&fm=102410001435031&tin=02508201610067®Number=0000000000091622&sum=38900 [06:59:25]line 0 [06:59:25]OFD Sender: Processing packet 60493 [packets to send 30, broken 29] [06:59:25]ProducePacketName [06:59:25]name=ofd_packets/00060493 [06:59:25]OFD Sender: To server: pG, [06:59:25]CommunicateWithHost lk.salyk.kg:30040 [06:59:25]ConnectInit lk.salyk.kg [06:59:25]written 0, free lines is 4095 [06:59:25]Connected sock=10 [06:59:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 15 02 00 00 CC 17 0D 02 13 D7 5A 03 01 00 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 97 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 CC E4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4D EC 00 00 35 04 06 00 5D 24 2F C1 C9 97 5A 2F 15 B2 13 F5 3A 0C [06:59:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F4 EB 47 00 7C 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 36 37 34 10 04 04 00 4D EC 00 00 F4 03 04 00 B4 8A 1D 67 B6 04 01 00 00 6E 3F 23 71 E5 38 44 76 [06:59:25]CommunicateWithHost err = 0 [06:59:25]CheckOFDResponse [06:59:25]1017 (14) - 77093643461234 [06:59:25]1041 (16) - 0000000000874674 [06:59:25]1040 (4) - 60493 [06:59:25]1012 (4) - 27.10.2024 00:35 [06:59:25]1206 (1) - 0 [06:59:25]OFD Sender: Remove packet 60493 [06:59:25]ProducePacketName [06:59:25]name=ofd_packets/00060493 [06:59:25]NVStorageDeleteData [06:59:26]Write to MH i2c: 01 00 00 49 04 4D [06:59:26]Write i2c OK [06:59:26]MH_I2C_Read... [06:59:26]Read from MH i2c: 01 [06:59:26]MH_I2C_Read... [06:59:26]Read from MH i2c: 01 07 00 [06:59:26]MH_I2C_Read... [06:59:26]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 36 0C 96 [06:59:26]RasterBufferAndPrint [06:59:26]line [06:59:26]line [06:59:26]line [06:59:26]line [06:59:26]line [06:59:26]written 0, free lines is 3133 [06:59:26]MH_Cut [06:59:26]Write to MH i2c: D1 01 00 50 04 01 26 [06:59:26]Write i2c OK [06:59:26]MH_I2C_Read... [06:59:26]Read from MH i2c: D1 [06:59:26]MH_I2C_Read... [06:59:26]Read from MH i2c: D1 01 00 [06:59:26]MH_I2C_Read... [06:59:26]Read from MH i2c: D1 01 00 50 04 00 25 [06:59:26]Write to MH i2c: 01 00 00 51 04 55 [06:59:26]Write i2c OK [06:59:26]MH_I2C_Read... [06:59:26]OFD Sender: No OFD packet to send [06:59:27]*** Cut start [06:59:27]*** Partial cut [06:59:27]*** CUTSNS_PIN = 1 [06:59:27]*** CUTSNS_PIN = 0 [06:59:27]*** Brake cut motor [06:59:27]Read from MH i2c: 01 [06:59:27]MH_I2C_Read... [06:59:27]*** Stop cut motor [06:59:27]*** Cut end [06:59:27]Read from MH i2c: 01 07 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 FF 0F 6A [06:59:27]process_action close_receipt done [06:59:27]requested_data is exist [06:59:27]produce_requested_data [06:59:27]requested_item fm.sn is exist - process it [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 11 00 00 [06:59:27]Write to MH i2c: E2 08 00 52 04 80 11 00 00 00 00 00 00 D0 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 17 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 17 00 52 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 27 [06:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [06:59:27]wFMCommunicate OK [06:59:27]requested_item fd.num is exist - process it [06:59:27]SAM_PROTO_GetFieldsCounters [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 13 00 00 [06:59:27]Write to MH i2c: E2 08 00 53 04 80 13 00 00 00 00 00 00 D3 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 62 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 62 00 53 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [06:59: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:27]wFMCommunicate OK [06:59:27]SAM_PROTO_GetFieldsCounters done [06:59:27]requested_item shift.num is exist - process it [06:59:27]requested_item shift.opened is exist - process it [06:59:27]req_shift_opened [06:59:27]FM_GetShiftState [06:59:27]SAM_PROTO_GetShiftState [06:59:27]wFMCommunicate request_size=4 [06:59:27]MH_SAM_APDU [06:59:27]CAPDU: 80 13 01 00 [06:59:27]Write to MH i2c: E2 08 00 54 04 80 13 01 00 00 00 00 00 D5 [06:59:27]Write i2c OK [06:59:27]MH_I2C_Read... [06:59:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:27]Read from MH i2c: E2 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 0E 00 [06:59:27]MH_I2C_Read... [06:59:27]Read from MH i2c: E2 0E 00 54 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 71 [06:59:28]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [06:59:28]wFMCommunicate OK [06:59:28]SAM_PROTO_GetShiftState done [06:59:28]FM_GetShiftState done [06:59:28]req_shift_opened done [06:59:28]requested_item shift.open_date is exist - process it [06:59:28]req_shift_open_date [06:59:28]req_shift_open_date done [06:59:28]produce_requested_data done [06:59:28]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60493,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [06:59:28]process_action_free close_receipt [06:59:28]json_value_free [06:59:28]json_value_free done [06:59:28]process_json_proto returns [06:59:28]Send response to host [06:59:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60493,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [06:59:28]free response buf [06:59:28]execute_script done [06:59:28]execute_script returns [06:59:28]free content buf [06:59:28]Sock 9.Close socket [06:59:28]Sock 9.Thread stoped [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:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]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:04]accept exits with 7 [07:18:04]New connection [07:18:04]New thread 3067215204 created [07:18:04]Thread 3067071844 joined [07:18:04]Waiting for new connection... [07:18:04] Sock 7.Parse request [07:18:04]Sock 7.Check first char [07:18:04]Sock 7.First char is OK [07:18:04]request: POST /json_proto HTTP/1.0 [07:18:04]Method: POST [07:18:04]URL: /json_proto [07:18:04]Method is POST - this is cgi request [07:18:04]url: /json_proto [07:18:04]query_string will be loaded in cgi processing [07:18:04]execute_cgi json_proto POST (null) [07:18:04]execute_cgi path=json_proto method=POST [07:18:04]POST find Content-Length [07:18:04]Host: 172.17.42.196:8080 [07:18:04]Content-Length: 752 [07:18:04]Content-Type: application/json [07:18:04] [07:18:04]POST finish read [07:18:04]Found Content-Length = 752 [07:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200137", "tax_sys" : 0, "items" : [ { "code": "4606532012014", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 6.000, "sum" : 378.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 378.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:04]execute_script... [07:18:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200137", "tax_sys" : 0, "items" : [ { "code": "4606532012014", "name": "\u041F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 Felix \u0445/\u0431", "price" : 63.00, "quantity" : 6.000, "sum" : 378.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 378.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:04]POST & json_proto [07:18:04]process_json_proto [07:18:04]json parsed OK: [07:18:04]protocol is kg_v1.0 [07:18:04]action value=close_receipt [07:18:04]process_action close_receipt [07:18:04]cmd_close_receipt [07:18:04]MH_GetDate [07:18:04]Write to MH i2c: F0 00 00 55 04 48 [07:18:04]Write i2c OK [07:18:04]MH_I2C_Read... [07:18:04]Read from MH i2c: F0 [07:18:04]MH_I2C_Read... [07:18:04]Read from MH i2c: F0 09 00 [07:18:04]MH_I2C_Read... [07:18:04]Read from MH i2c: F0 09 00 55 04 00 2D E9 1D 67 FF C4 6B 64 7D [07:18:04]GetLastDocTimeStamp 1730012364 [07:18:04]current date 1730013485 [07:18:04]FM_GetShiftState [07:18:04]SAM_PROTO_GetShiftState [07:18:04]wFMCommunicate request_size=4 [07:18:04]MH_SAM_APDU [07:18:04]CAPDU: 80 13 01 00 [07:18:04]Write to MH i2c: E2 08 00 56 04 80 13 01 00 00 00 00 00 D7 [07:18:04]Write i2c OK [07:18:04]MH_I2C_Read... [07:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:04]Read from MH i2c: E2 [07:18:04]MH_I2C_Read... [07:18:04]Read from MH i2c: E2 0E 00 [07:18:04]MH_I2C_Read... [07:18:04]Read from MH i2c: E2 0E 00 56 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 73 [07:18:04]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:18:04]wFMCommunicate OK [07:18:04]SAM_PROTO_GetShiftState done [07:18:04]FM_GetShiftState done [07:18:04]opened in 1729989505 [07:18:04]opened+sec_in_day 1730075905 [07:18:04]quantity*price = 37800 [07:18:04]sum+1 = 37801 [07:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 378.00 НСП 1% : 3.34 НДС 12% : 40.14 Наличными: 0.00 Безнал.: 378.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 26 27.10.2024 07:18 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60494 ФПД: 255618724952459 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071805&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60494&fm=255618724952459&tin=02508201610067®Number=0000000000091622&sum=37800 0 [07:18:05]StoreToDocumentArchive [07:18:05]shift 532 fd 60494 [07:18:05]save to /storage/0532/doc_00060494 [07:18:05]save last doc name /storage/0532/doc_00060494 to /storage/kkm_last_doc_name [07:18:05]save OK [07:18:05]Clear old archive folders... [07:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=270 [07:18:05]tlvbuf is 00341500 [07:18:05]SAM_PROTO_ClearQueue [07:18:05]wFMCommunicate request_size=4 [07:18:05]MH_SAM_APDU [07:18:05]CAPDU: 80 09 00 00 [07:18:05]Write to MH i2c: E2 08 00 63 04 80 09 00 00 00 00 00 00 D9 [07:18:05]Write i2c OK [07:18:05]MH_I2C_Read... [07:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:05]Read from MH i2c: E2 [07:18:05]MH_I2C_Read... [07:18:05]Read from MH i2c: E2 03 00 [07:18:05]MH_I2C_Read... [07:18:05]Read from MH i2c: E2 03 00 63 04 00 90 00 DB [07:18:05]RAPDU: 90 00 [07:18:05]wFMCommunicate OK [07:18:05]SAM_PROTO_ClearQueue done [07:18:05]KKMCreateOFDPacket [07:18:05]OFDProtocolAddRootSTLVToBuf [07:18:05]FM_MakeSignedData [07:18:05]FM_MakeSignedData [07:18:05]SAM_PROTO_SignData [07:18:05]wFMCommunicate request_size=4 [07:18:05]MH_SAM_APDU [07:18:05]CAPDU: 80 0D 01 02 [07:18:05]Write to MH i2c: E2 08 00 64 04 80 0D 01 02 00 00 00 00 E1 [07:18:05]Write i2c OK [07:18:05]MH_I2C_Read... [07:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:05]Read from MH i2c: E2 [07:18:05]MH_I2C_Read... [07:18:05]Read from MH i2c: E2 03 00 [07:18:05]MH_I2C_Read... [07:18:05]Read from MH i2c: E2 03 00 64 04 00 90 00 DC [07:18:05]RAPDU: 90 00 [07:18:05]wFMCommunicate OK [07:18:05]wFMCommunicate request_size=255 [07:18:05]MH_SAM_APDU [07:18:05]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 A8 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 93 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2D E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [07:18:05]Write to MH i2c: E2 02 01 65 04 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 A8 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 93 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2D E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 2F [07:18:05]Write i2c OK [07:18:05]MH_I2C_Read... [07:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:06]Read from MH i2c: E2 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 03 00 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 03 00 65 04 00 90 00 DD [07:18:06]RAPDU: 90 00 [07:18:06]wFMCommunicate OK [07:18:06]wFMCommunicate request_size=29 [07:18:06]MH_SAM_APDU [07:18:06]CAPDU: 80 0D 02 02 18 38 37 34 36 37 34 10 04 04 00 4E EC 00 00 35 04 06 00 E8 7B DF 4C 79 8B [07:18:06]Write to MH i2c: E2 20 00 66 04 80 0D 02 02 18 00 38 37 34 36 37 34 10 04 04 00 4E EC 00 00 35 04 06 00 E8 7B DF 4C 79 8B 00 00 7B [07:18:06]Write i2c OK [07:18:06]MH_I2C_Read... [07:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:06]Read from MH i2c: E2 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 03 00 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 03 00 66 04 00 90 00 DE [07:18:06]RAPDU: 90 00 [07:18:06]wFMCommunicate OK [07:18:06]wFMCommunicate request_size=4 [07:18:06]MH_SAM_APDU [07:18:06]CAPDU: 80 0D 03 02 [07:18:06]Write to MH i2c: E2 08 00 67 04 80 0D 03 02 00 00 00 00 E6 [07:18:06]Write i2c OK [07:18:06]MH_I2C_Read... [07:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:06]Read from MH i2c: E2 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 0B 00 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 0B 00 67 04 00 81 C1 21 5F 32 E2 76 4A 90 00 7D [07:18:06]RAPDU: 81 C1 21 5F 32 E2 76 4A 90 00 [07:18:06]wFMCommunicate OK [07:18:06]SAM_PROTO_SignData done [07:18:06]FM_MakeSignedData done [07:18:06]CreateOFDProtocolMessage [07:18:06]wFMCommunicate request_size=4 [07:18:06]MH_SAM_APDU [07:18:06]CAPDU: 80 11 00 00 [07:18:06]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [07:18:06]Write i2c OK [07:18:06]MH_I2C_Read... [07:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:06]Read from MH i2c: E2 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 17 00 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 3D [07:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:18:06]wFMCommunicate OK [07:18:06]CreateOFDProtocolMessage done [07:18:06]OFDSenderStorePacket 60494 [07:18:06]StoreOFDPacket docnum=60494 [07:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 22 01 00 00 0C C1 1A 01 27 37 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 A8 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 93 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2D E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4E EC 00 00 35 04 06 00 E8 7B DF 4C 79 8B 81 C1 21 5F 32 E2 76 4A [07:18:06]CheckFolder [07:18:06]dirname=/storage/ofd_packets [07:18:06]CheckFolder done [07:18:06]ProducePacketName [07:18:06]name=ofd_packets/00060494 [07:18:06]NVStorageSaveData ofd_packets/00060494 [07:18:06]File name is /storage/ofd_packets/00060494 [07:18:06]Write 320 bytes [07:18:06]NVStorageSaveData done [07:18:06]OFDSenderStorePacket done [07:18:06]KKMCreateOFDPacket done [07:18:06]NVStorageSaveData kkm_last_timestamp [07:18:06]File name is /storage/kkm_last_timestamp [07:18:06]Write 4 bytes [07:18:06]NVStorageSaveData done [07:18:06]OFD Sender: Processing packet 60494 [packets to send 30, broken 29] [07:18:06]ProducePacketName [07:18:06]name=ofd_packets/00060494 [07:18:06]OFD Sender: To server: pG, [07:18:06]CommunicateWithHost lk.salyk.kg:30040 [07:18:06]ConnectInit lk.salyk.kg [07:18:06]ExternCall_PrintAddStr [07:18:06]wPrintStart [07:18:06]Write to MH i2c: 01 00 00 69 04 6D [07:18:06]Write i2c OK [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: 01 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: 01 07 00 [07:18:06]MH_I2C_Read... [07:18:06]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 FF 0F 82 [07:18:06]RasterBufferAndPrint [07:18:06]line Счет N : (3)200137 [07:18:06]line ИНН: 02508201610067 [07:18:06]line Контрольно-Кассовый Чек [07:18:06]line ПРОДАЖА [07:18:06]line Товар: 4606532012014 [07:18:06]line Перчатки Felix х/б [07:18:06]line 6.000 * 63.00 [07:18:06]line = 378.00 [07:18:06]line НДС 12% НСП 1% [07:18:06]line > о реализуемом товаре [07:18:06]line ИТОГО: 378.00 [07:18:06]line НСП 1% : 3.34 [07:18:06]line НДС 12% : 40.14 [07:18:06]line Наличными: 0.00 [07:18:06]line Безнал.: 378.00 [07:18:06]line Место: АЗС № 87 "Партнер Нефть" [07:18:06]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [07:18:06]line СНО: Общий режим [07:18:06]line Чек 26 27.10.2024 07:18 [07:18:06]line Смена: 532 ФФД: 1.0 [07:18:06]line ЗНМ: 0300000084 [07:18:06]line РНМ: 0000000000091622 [07:18:06]line Версия ККМ: 001 [07:18:06]line Платежная система: Mbank [07:18:06]line ФМ: 0000000000874674 [07:18:06]line ФД: 60494 [07:18:06]line ФПД: 255618724952459 [07:18:06]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071805&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60494&fm=255618724952459&tin=02508201610067®Number=0000000000091622&sum=37800 [07:18:06]line 0 [07:18:06]Connected sock=11 [07:18: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 36 37 34 22 01 00 00 0C C1 1A 01 27 37 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 36 30 36 35 33 32 30 31 32 30 31 34 06 04 1C 00 D0 9F D0 B5 D1 80 D1 87 D0 B0 D1 82 D0 BA D0 B8 20 46 65 6C 69 78 20 D1 85 2F D0 B1 FF 03 08 00 03 70 17 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 A8 93 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 93 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2D E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4E EC 00 00 35 04 06 00 E8 7B DF 4C 79 8B 81 C1 21 5F 32 E2 76 4A [07:18:06]written 0, free lines is 4095 [07:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 39 01 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 36 37 34 10 04 04 00 4E EC 00 00 F4 03 04 00 15 8F 1D 67 B6 04 01 00 00 E0 EF CF 64 CE CC 7E A8 [07:18:06]CommunicateWithHost err = 0 [07:18:06]CheckOFDResponse [07:18:06]1017 (14) - 77093643461234 [07:18:06]1041 (16) - 0000000000874674 [07:18:06]1040 (4) - 60494 [07:18:06]1012 (4) - 27.10.2024 00:53 [07:18:06]1206 (1) - 0 [07:18:06]OFD Sender: Remove packet 60494 [07:18:06]ProducePacketName [07:18:06]name=ofd_packets/00060494 [07:18:06]NVStorageDeleteData [07:18:07]Write to MH i2c: 01 00 00 92 04 96 [07:18:07]Write i2c OK [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: 01 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: 01 07 00 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: 01 07 00 92 04 00 00 00 00 00 EB 0C 94 [07:18:07]RasterBufferAndPrint [07:18:07]line [07:18:07]line [07:18:07]line [07:18:07]line [07:18:07]line [07:18:07]written 0, free lines is 3313 [07:18:07]MH_Cut [07:18:07]Write to MH i2c: D1 01 00 99 04 01 6F [07:18:07]Write i2c OK [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: D1 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: D1 01 00 [07:18:07]MH_I2C_Read... [07:18:07]Read from MH i2c: D1 01 00 99 04 00 6E [07:18:07]Write to MH i2c: 01 00 00 9A 04 9E [07:18:07]Write i2c OK [07:18:07]MH_I2C_Read... [07:18:07]OFD Sender: No OFD packet to send [07:18:07]*** Cut start [07:18:07]*** Partial cut [07:18:07]*** CUTSNS_PIN = 1 [07:18:07]*** CUTSNS_PIN = 0 [07:18:08]*** Brake cut motor [07:18:08]Read from MH i2c: 01 [07:18:08]MH_I2C_Read... [07:18:08]*** Stop cut motor [07:18:08]*** Cut end [07:18:08]Read from MH i2c: 01 07 00 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 FF 0F B3 [07:18:08]process_action close_receipt done [07:18:08]requested_data is exist [07:18:08]produce_requested_data [07:18:08]requested_item fm.sn is exist - process it [07:18:08]wFMCommunicate request_size=4 [07:18:08]MH_SAM_APDU [07:18:08]CAPDU: 80 11 00 00 [07:18:08]Write to MH i2c: E2 08 00 9B 04 80 11 00 00 00 00 00 00 19 [07:18:08]Write i2c OK [07:18:08]MH_I2C_Read... [07:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:08]Read from MH i2c: E2 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 17 00 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 17 00 9B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 70 [07:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:18:08]wFMCommunicate OK [07:18:08]requested_item fd.num is exist - process it [07:18:08]SAM_PROTO_GetFieldsCounters [07:18:08]wFMCommunicate request_size=4 [07:18:08]MH_SAM_APDU [07:18:08]CAPDU: 80 13 00 00 [07:18:08]Write to MH i2c: E2 08 00 9C 04 80 13 00 00 00 00 00 00 1C [07:18:08]Write i2c OK [07:18:08]MH_I2C_Read... [07:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:08]Read from MH i2c: E2 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 62 00 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 62 00 9C 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [07:18: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:18:08]wFMCommunicate OK [07:18:08]SAM_PROTO_GetFieldsCounters done [07:18:08]requested_item shift.num is exist - process it [07:18:08]requested_item shift.opened is exist - process it [07:18:08]req_shift_opened [07:18:08]FM_GetShiftState [07:18:08]SAM_PROTO_GetShiftState [07:18:08]wFMCommunicate request_size=4 [07:18:08]MH_SAM_APDU [07:18:08]CAPDU: 80 13 01 00 [07:18:08]Write to MH i2c: E2 08 00 9D 04 80 13 01 00 00 00 00 00 1E [07:18:08]Write i2c OK [07:18:08]MH_I2C_Read... [07:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:08]Read from MH i2c: E2 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 0E 00 [07:18:08]MH_I2C_Read... [07:18:08]Read from MH i2c: E2 0E 00 9D 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 BA [07:18:08]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:18:08]wFMCommunicate OK [07:18:08]SAM_PROTO_GetShiftState done [07:18:08]FM_GetShiftState done [07:18:08]req_shift_opened done [07:18:08]requested_item shift.open_date is exist - process it [07:18:08]req_shift_open_date [07:18:08]req_shift_open_date done [07:18:08]produce_requested_data done [07:18:08]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60494,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [07:18:08]process_action_free close_receipt [07:18:08]json_value_free [07:18:08]json_value_free done [07:18:08]process_json_proto returns [07:18:08]Send response to host [07:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60494,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [07:18:08]free response buf [07:18:08]execute_script done [07:18:08]execute_script returns [07:18:08]free content buf [07:18:08]Sock 7.Close socket [07:18:08]Sock 7.Thread stoped [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:13]accept exits with 9 [07:21:13]New connection [07:21:13]New thread 3067071844 created [07:21:13]Thread 3067215204 joined [07:21:13]Waiting for new connection... [07:21:13] Sock 9.Parse request [07:21:13]Sock 9.Check first char [07:21:13]Sock 9.First char is OK [07:21:13]request: POST /json_proto HTTP/1.0 [07:21:13]Method: POST [07:21:13]URL: /json_proto [07:21:13]Method is POST - this is cgi request [07:21:13]url: /json_proto [07:21:13]query_string will be loaded in cgi processing [07:21:13]execute_cgi json_proto POST (null) [07:21:13]execute_cgi path=json_proto method=POST [07:21:13]POST find Content-Length [07:21:13]Host: 172.17.42.196:8080 [07:21:13]Content-Length: 626 [07:21:13]Content-Type: application/json [07:21:13] [07:21:13]POST finish read [07:21:13]Found Content-Length = 626 [07:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200138", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:13]execute_script... [07:21:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200138", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:13]POST & json_proto [07:21:13]process_json_proto [07:21:13]json parsed OK: [07:21:13]protocol is kg_v1.0 [07:21:13]action value=close_receipt [07:21:13]process_action close_receipt [07:21:13]cmd_close_receipt [07:21:13]MH_GetDate [07:21:13]Write to MH i2c: F0 00 00 9E 04 91 [07:21:13]Write i2c OK [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: F0 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: F0 09 00 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: F0 09 00 9E 04 00 EA E9 1D 67 FF C4 6B 64 83 [07:21:13]GetLastDocTimeStamp 1730013485 [07:21:13]current date 1730013674 [07:21:13]FM_GetShiftState [07:21:13]SAM_PROTO_GetShiftState [07:21:13]wFMCommunicate request_size=4 [07:21:13]MH_SAM_APDU [07:21:13]CAPDU: 80 13 01 00 [07:21:13]Write to MH i2c: E2 08 00 9F 04 80 13 01 00 00 00 00 00 20 [07:21:13]Write i2c OK [07:21:13]MH_I2C_Read... [07:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:13]Read from MH i2c: E2 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: E2 0E 00 [07:21:13]MH_I2C_Read... [07:21:13]Read from MH i2c: E2 0E 00 9F 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 BC [07:21:13]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:21:13]wFMCommunicate OK [07:21:13]SAM_PROTO_GetShiftState done [07:21:13]FM_GetShiftState done [07:21:13]opened in 1729989505 [07:21:13]opened+sec_in_day 1730075905 [07:21:13]quantity*price = 13400 [07:21:13]sum+1 = 13401 [07:21:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 НСП 1% : 1.19 НДС 12% : 14.23 Наличными: 134.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 27 27.10.2024 07:21 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60495 ФПД: 188289267086974 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T072114&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60495&fm=188289267086974&tin=02508201610067®Number=0000000000091622&sum=13400 0 [07:21:14]StoreToDocumentArchive [07:21:14]shift 532 fd 60495 [07:21:14]save to /storage/0532/doc_00060495 [07:21:14]save last doc name /storage/0532/doc_00060495 to /storage/kkm_last_doc_name [07:21:14]save OK [07:21:14]Clear old archive folders... [07:21:14]ProcessDocumentItem done err = 0, tmpTLVsize=278 [07:21:14]tlvbuf is 002D3B50 [07:21:14]SAM_PROTO_ClearQueue [07:21:14]wFMCommunicate request_size=4 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 09 00 00 [07:21:14]Write to MH i2c: E2 08 00 AC 04 80 09 00 00 00 00 00 00 22 [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 AC 04 00 90 00 24 [07:21:14]RAPDU: 90 00 [07:21:14]wFMCommunicate OK [07:21:14]SAM_PROTO_ClearQueue done [07:21:14]KKMCreateOFDPacket [07:21:14]OFDProtocolAddRootSTLVToBuf [07:21:14]FM_MakeSignedData [07:21:14]FM_MakeSignedData [07:21:14]SAM_PROTO_SignData [07:21:14]wFMCommunicate request_size=4 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 0D 01 02 [07:21:14]Write to MH i2c: E2 08 00 AD 04 80 0D 01 02 00 00 00 00 2A [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:14]Read from MH i2c: E2 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 [07:21:14]MH_I2C_Read... [07:21:14]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [07:21:14]RAPDU: 90 00 [07:21:14]wFMCommunicate OK [07:21:14]wFMCommunicate request_size=255 [07:21:14]MH_SAM_APDU [07:21:14]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EA E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 [07:21:14]Write to MH i2c: E2 02 01 AE 04 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EA E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 00 00 E2 [07:21:14]Write i2c OK [07:21:14]MH_I2C_Read... [07:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:15]Read from MH i2c: E2 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 03 00 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [07:21:15]RAPDU: 90 00 [07:21:15]wFMCommunicate OK [07:21:15]wFMCommunicate request_size=37 [07:21:15]MH_SAM_APDU [07:21:15]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4F EC 00 00 35 04 06 00 AB 3F 82 E1 36 7E [07:21:15]Write to MH i2c: E2 28 00 AF 04 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4F EC 00 00 35 04 06 00 AB 3F 82 E1 36 7E 00 00 C4 [07:21:15]Write i2c OK [07:21:15]MH_I2C_Read... [07:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:15]Read from MH i2c: E2 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 03 00 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [07:21:15]RAPDU: 90 00 [07:21:15]wFMCommunicate OK [07:21:15]wFMCommunicate request_size=4 [07:21:15]MH_SAM_APDU [07:21:15]CAPDU: 80 0D 03 02 [07:21:15]Write to MH i2c: E2 08 00 B0 04 80 0D 03 02 00 00 00 00 2F [07:21:15]Write i2c OK [07:21:15]MH_I2C_Read... [07:21:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:15]Read from MH i2c: E2 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 0B 00 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 0B 00 B0 04 00 53 13 F9 ED 35 63 A7 2E 90 00 E9 [07:21:15]RAPDU: 53 13 F9 ED 35 63 A7 2E 90 00 [07:21:15]wFMCommunicate OK [07:21:15]SAM_PROTO_SignData done [07:21:15]FM_MakeSignedData done [07:21:15]CreateOFDProtocolMessage [07:21:15]wFMCommunicate request_size=4 [07:21:15]MH_SAM_APDU [07:21:15]CAPDU: 80 11 00 00 [07:21:15]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [07:21:15]Write i2c OK [07:21:15]MH_I2C_Read... [07:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:15]Read from MH i2c: E2 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 17 00 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 86 [07:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:21:15]wFMCommunicate OK [07:21:15]CreateOFDProtocolMessage done [07:21:15]OFDSenderStorePacket 60495 [07:21:15]StoreOFDPacket docnum=60495 [07:21:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2A 01 00 00 79 C1 22 01 96 93 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EA E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4F EC 00 00 35 04 06 00 AB 3F 82 E1 36 7E 53 13 F9 ED 35 63 A7 2E [07:21:15]CheckFolder [07:21:15]dirname=/storage/ofd_packets [07:21:15]CheckFolder done [07:21:15]ProducePacketName [07:21:15]name=ofd_packets/00060495 [07:21:15]NVStorageSaveData ofd_packets/00060495 [07:21:15]File name is /storage/ofd_packets/00060495 [07:21:15]Write 328 bytes [07:21:15]NVStorageSaveData done [07:21:15]OFDSenderStorePacket done [07:21:15]KKMCreateOFDPacket done [07:21:15]NVStorageSaveData kkm_last_timestamp [07:21:15]File name is /storage/kkm_last_timestamp [07:21:15]Write 4 bytes [07:21:15]NVStorageSaveData done [07:21:15]ExternCall_PrintAddStr [07:21:15]wPrintStart [07:21:15]Write to MH i2c: 01 00 00 B2 04 B6 [07:21:15]Write i2c OK [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: 01 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: 01 07 00 [07:21:15]MH_I2C_Read... [07:21:15]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 FF 0F CB [07:21:15]RasterBufferAndPrint [07:21:15]line Счет N : (3)200138 [07:21:15]line ИНН: 02508201610067 [07:21:15]line Контрольно-Кассовый Чек [07:21:15]line ПРОДАЖА [07:21:15]line Товар: 48743389 [07:21:15]line Сигареты BOND STREET compact blue [07:21:15]line 1.000 * 134.00 [07:21:15]line = 134.00 [07:21:15]line НДС 12% НСП 1% [07:21:15]line > о реализуемом товаре [07:21:15]line ИТОГО: 134.00 [07:21:15]line НСП 1% : 1.19 [07:21:15]line НДС 12% : 14.23 [07:21:15]line Наличными: 134.00 [07:21:15]line Безнал.: 0.00 [07:21:15]line Место: АЗС № 87 "Партнер Нефть" [07:21:15]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [07:21:15]line СНО: Общий режим [07:21:15]line Чек 27 27.10.2024 07:21 [07:21:15]line Смена: 532 ФФД: 1.0 [07:21:15]line ЗНМ: 0300000084 [07:21:15]line РНМ: 0000000000091622 [07:21:15]line Версия ККМ: 001 [07:21:15]line ФМ: 0000000000874674 [07:21:15]line ФД: 60495 [07:21:15]line ФПД: 188289267086974 [07:21:15]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T072114&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60495&fm=188289267086974&tin=02508201610067®Number=0000000000091622&sum=13400 [07:21:15]line 0 [07:21:15]OFD Sender: Processing packet 60495 [packets to send 30, broken 29] [07:21:15]ProducePacketName [07:21:15]name=ofd_packets/00060495 [07:21:15]OFD Sender: To server: pG, [07:21:15]CommunicateWithHost lk.salyk.kg:30040 [07:21:15]ConnectInit lk.salyk.kg [07:21:15]written 0, free lines is 4095 [07:21:15]Connected sock=10 [07:21: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 36 37 34 2A 01 00 00 79 C1 22 01 96 93 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 EA E9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 4F EC 00 00 35 04 06 00 AB 3F 82 E1 36 7E 53 13 F9 ED 35 63 A7 2E [07:21:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E3 27 47 00 4D 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 36 37 34 10 04 04 00 4F EC 00 00 F4 03 04 00 D2 8F 1D 67 B6 04 01 00 00 A9 1B 6A E2 09 3F EC F7 [07:21:15]CommunicateWithHost err = 0 [07:21:15]CheckOFDResponse [07:21:15]1017 (14) - 77093643461234 [07:21:15]1041 (16) - 0000000000874674 [07:21:15]1040 (4) - 60495 [07:21:15]1012 (4) - 27.10.2024 00:56 [07:21:15]1206 (1) - 0 [07:21:15]OFD Sender: Remove packet 60495 [07:21:15]ProducePacketName [07:21:15]name=ofd_packets/00060495 [07:21:15]NVStorageDeleteData [07:21:16]Write to MH i2c: 01 00 00 DB 04 DF [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: 01 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: 01 07 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: 01 07 00 DB 04 00 00 00 00 00 E8 0C DA [07:21:16]RasterBufferAndPrint [07:21:16]line [07:21:16]line [07:21:16]line [07:21:16]line [07:21:16]line [07:21:16]written 0, free lines is 3310 [07:21:16]MH_Cut [07:21:16]Write to MH i2c: D1 01 00 E2 04 01 B8 [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: D1 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: D1 01 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: D1 01 00 E2 04 00 B7 [07:21:16]Write to MH i2c: 01 00 00 E3 04 E7 [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]OFD Sender: No OFD packet to send [07:21:16]*** Cut start [07:21:16]*** Partial cut [07:21:16]*** CUTSNS_PIN = 1 [07:21:16]*** CUTSNS_PIN = 0 [07:21:17]*** Brake cut motor [07:21:17]Read from MH i2c: 01 [07:21:17]MH_I2C_Read... [07:21:17]*** Stop cut motor [07:21:17]*** Cut end [07:21:17]Read from MH i2c: 01 07 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: 01 07 00 E3 04 00 00 00 00 00 FF 0F FC [07:21:17]process_action close_receipt done [07:21:17]requested_data is exist [07:21:17]produce_requested_data [07:21:17]requested_item fm.sn is exist - process it [07:21:17]wFMCommunicate request_size=4 [07:21:17]MH_SAM_APDU [07:21:17]CAPDU: 80 11 00 00 [07:21:17]Write to MH i2c: E2 08 00 E4 04 80 11 00 00 00 00 00 00 62 [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:17]Read from MH i2c: E2 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 17 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 17 00 E4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B9 [07:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:21:17]wFMCommunicate OK [07:21:17]requested_item fd.num is exist - process it [07:21:17]SAM_PROTO_GetFieldsCounters [07:21:17]wFMCommunicate request_size=4 [07:21:17]MH_SAM_APDU [07:21:17]CAPDU: 80 13 00 00 [07:21:17]Write to MH i2c: E2 08 00 E5 04 80 13 00 00 00 00 00 00 65 [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:17]Read from MH i2c: E2 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 62 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 62 00 E5 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [07:21: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 4F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:17]wFMCommunicate OK [07:21:17]SAM_PROTO_GetFieldsCounters done [07:21:17]requested_item shift.num is exist - process it [07:21:17]requested_item shift.opened is exist - process it [07:21:17]req_shift_opened [07:21:17]FM_GetShiftState [07:21:17]SAM_PROTO_GetShiftState [07:21:17]wFMCommunicate request_size=4 [07:21:17]MH_SAM_APDU [07:21:17]CAPDU: 80 13 01 00 [07:21:17]Write to MH i2c: E2 08 00 E6 04 80 13 01 00 00 00 00 00 67 [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:17]Read from MH i2c: E2 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 0E 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 0E 00 E6 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 03 [07:21:17]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:21:17]wFMCommunicate OK [07:21:17]SAM_PROTO_GetShiftState done [07:21:17]FM_GetShiftState done [07:21:17]req_shift_opened done [07:21:17]requested_item shift.open_date is exist - process it [07:21:17]req_shift_open_date [07:21:17]req_shift_open_date done [07:21:17]produce_requested_data done [07:21:17]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60495,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [07:21:17]process_action_free close_receipt [07:21:17]json_value_free [07:21:17]json_value_free done [07:21:17]process_json_proto returns [07:21:17]Send response to host [07:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60495,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [07:21:17]free response buf [07:21:17]execute_script done [07:21:17]execute_script returns [07:21:17]free content buf [07:21:17]Sock 9.Close socket [07:21:17]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:30]accept exits with 7 [07:25:30]New connection [07:25:30]New thread 3067215204 created [07:25:30]Thread 3067071844 joined [07:25:30]Waiting for new connection... [07:25:30] Sock 7.Parse request [07:25:30]Sock 7.Check first char [07:25:30]Sock 7.First char is OK [07:25:30]request: POST /json_proto HTTP/1.0 [07:25:30]Method: POST [07:25:30]URL: /json_proto [07:25:30]Method is POST - this is cgi request [07:25:30]url: /json_proto [07:25:30]query_string will be loaded in cgi processing [07:25:30]execute_cgi json_proto POST (null) [07:25:30]execute_cgi path=json_proto method=POST [07:25:30]POST find Content-Length [07:25:30]Host: 172.17.42.196:8080 [07:25:30]Content-Length: 627 [07:25:30]Content-Type: application/json [07:25:30] [07:25:30]POST finish read [07:25:30]Found Content-Length = 627 [07:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200139", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:30]execute_script... [07:25:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200139", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:25:30]POST & json_proto [07:25:30]process_json_proto [07:25:30]json parsed OK: [07:25:30]protocol is kg_v1.0 [07:25:30]action value=close_receipt [07:25:30]process_action close_receipt [07:25:30]cmd_close_receipt [07:25:30]MH_GetDate [07:25:30]Write to MH i2c: F0 00 00 E7 04 DA [07:25:30]Write i2c OK [07:25:30]MH_I2C_Read... [07:25:30]Read from MH i2c: F0 [07:25:30]MH_I2C_Read... [07:25:30]Read from MH i2c: F0 09 00 [07:25:30]MH_I2C_Read... [07:25:30]Read from MH i2c: F0 09 00 E7 04 00 EB EA 1D 67 FF C4 6B 64 CE [07:25:30]GetLastDocTimeStamp 1730013674 [07:25:30]current date 1730013931 [07:25:30]FM_GetShiftState [07:25:30]SAM_PROTO_GetShiftState [07:25:30]wFMCommunicate request_size=4 [07:25:30]MH_SAM_APDU [07:25:30]CAPDU: 80 13 01 00 [07:25:30]Write to MH i2c: E2 08 00 E8 04 80 13 01 00 00 00 00 00 69 [07:25:30]Write i2c OK [07:25:30]MH_I2C_Read... [07:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:30]Read from MH i2c: E2 [07:25:30]MH_I2C_Read... [07:25:30]Read from MH i2c: E2 0E 00 [07:25:30]MH_I2C_Read... [07:25:30]Read from MH i2c: E2 0E 00 E8 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 05 [07:25:30]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:25:30]wFMCommunicate OK [07:25:30]SAM_PROTO_GetShiftState done [07:25:30]FM_GetShiftState done [07:25:30]opened in 1729989505 [07:25:30]opened+sec_in_day 1730075905 [07:25:30]quantity*price = 4000 [07:25:30]sum+1 = 4001 [07:25:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 28 27.10.2024 07:25 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60496 ФПД: 32977214829591 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T072531&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60496&fm=32977214829591&tin=02508201610067®Number=0000000000091622&sum=4000 0 [07:25:31]StoreToDocumentArchive [07:25:31]shift 532 fd 60496 [07:25:31]save to /storage/0532/doc_00060496 [07:25:31]save last doc name /storage/0532/doc_00060496 to /storage/kkm_last_doc_name [07:25:31]save OK [07:25:31]Clear old archive folders... [07:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=270 [07:25:31]tlvbuf is 002D3A20 [07:25:31]SAM_PROTO_ClearQueue [07:25:31]wFMCommunicate request_size=4 [07:25:31]MH_SAM_APDU [07:25:31]CAPDU: 80 09 00 00 [07:25:31]Write to MH i2c: E2 08 00 F5 04 80 09 00 00 00 00 00 00 6B [07:25:31]Write i2c OK [07:25:31]MH_I2C_Read... [07:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:31]Read from MH i2c: E2 [07:25:31]MH_I2C_Read... [07:25:31]Read from MH i2c: E2 03 00 [07:25:31]MH_I2C_Read... [07:25:31]Read from MH i2c: E2 03 00 F5 04 00 90 00 6D [07:25:31]RAPDU: 90 00 [07:25:31]wFMCommunicate OK [07:25:31]SAM_PROTO_ClearQueue done [07:25:31]KKMCreateOFDPacket [07:25:31]OFDProtocolAddRootSTLVToBuf [07:25:31]FM_MakeSignedData [07:25:31]FM_MakeSignedData [07:25:31]SAM_PROTO_SignData [07:25:31]wFMCommunicate request_size=4 [07:25:31]MH_SAM_APDU [07:25:31]CAPDU: 80 0D 01 02 [07:25:31]Write to MH i2c: E2 08 00 F6 04 80 0D 01 02 00 00 00 00 73 [07:25:31]Write i2c OK [07:25:31]MH_I2C_Read... [07:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:31]Read from MH i2c: E2 [07:25:31]MH_I2C_Read... [07:25:31]Read from MH i2c: E2 03 00 [07:25:31]MH_I2C_Read... [07:25:31]Read from MH i2c: E2 03 00 F6 04 00 90 00 6E [07:25:31]RAPDU: 90 00 [07:25:31]wFMCommunicate OK [07:25:31]wFMCommunicate request_size=255 [07:25:31]MH_SAM_APDU [07:25:31]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB EA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [07:25:31]Write to MH i2c: E2 02 01 F7 04 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB EA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 5D [07:25:31]Write i2c OK [07:25:31]MH_I2C_Read... [07:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:32]Read from MH i2c: E2 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 03 00 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 03 00 F7 04 00 90 00 6F [07:25:32]RAPDU: 90 00 [07:25:32]wFMCommunicate OK [07:25:32]wFMCommunicate request_size=29 [07:25:32]MH_SAM_APDU [07:25:32]CAPDU: 80 0D 02 02 18 38 37 34 36 37 34 10 04 04 00 50 EC 00 00 35 04 06 00 1D FE 1B 2C F4 17 [07:25:32]Write to MH i2c: E2 20 00 F8 04 80 0D 02 02 18 00 38 37 34 36 37 34 10 04 04 00 50 EC 00 00 35 04 06 00 1D FE 1B 2C F4 17 00 00 EA [07:25:32]Write i2c OK [07:25:32]MH_I2C_Read... [07:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:32]Read from MH i2c: E2 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 03 00 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 03 00 F8 04 00 90 00 70 [07:25:32]RAPDU: 90 00 [07:25:32]wFMCommunicate OK [07:25:32]wFMCommunicate request_size=4 [07:25:32]MH_SAM_APDU [07:25:32]CAPDU: 80 0D 03 02 [07:25:32]Write to MH i2c: E2 08 00 F9 04 80 0D 03 02 00 00 00 00 78 [07:25:32]Write i2c OK [07:25:32]MH_I2C_Read... [07:25:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:32]Read from MH i2c: E2 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 0B 00 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 0B 00 F9 04 00 8C 06 29 2A 99 0F 2C AF 90 00 E1 [07:25:32]RAPDU: 8C 06 29 2A 99 0F 2C AF 90 00 [07:25:32]wFMCommunicate OK [07:25:32]SAM_PROTO_SignData done [07:25:32]FM_MakeSignedData done [07:25:32]CreateOFDProtocolMessage [07:25:32]wFMCommunicate request_size=4 [07:25:32]MH_SAM_APDU [07:25:32]CAPDU: 80 11 00 00 [07:25:32]Write to MH i2c: E2 08 00 FA 04 80 11 00 00 00 00 00 00 78 [07:25:32]Write i2c OK [07:25:32]MH_I2C_Read... [07:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:32]Read from MH i2c: E2 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 17 00 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 17 00 FA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CF [07:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:25:32]wFMCommunicate OK [07:25:32]CreateOFDProtocolMessage done [07:25:32]OFDSenderStorePacket 60496 [07:25:32]StoreOFDPacket docnum=60496 [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 C4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 69 [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 54000000005725C4 (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: 45229588+1684784383=1730013971 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33570624 [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 C4 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 6A [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 40 00 FF FF 5F [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 14 EB 1D 67 FF C4 6B 64 14 [07:26:12]Current date/time: 27.10.2024 07:26 [07:26:12]FM_Init [07:26:12]wFMConnect [07:26:12]MH_SAM_On [07:26:12]Write to MH i2c: E0 00 00 08 00 E7 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_init finished! [07:26:12]*** atr: [07:26:12]*** 0F 3B D5 18 FF 81 91 FE [07:26:12]*** 1F C3 80 73 C8 21 10 0A [07:26:12]*** 00 00 00 00 00 00 00 00 [07:26:12]*** 00 00 00 00 00 00 00 00 [07:26:12]*** 00 00 00 00 00 00 00 00 [07:26:12]*** 00 00 00 00 00 00 00 00 [07:26:12]*** 00 00 00 00 00 00 00 00 [07:26:12]*** 00 00 00 00 00 00 00 00 [07:26:12]Read from MH i2c: E0 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E0 10 00 [07:26:12]MH_I2C_Read... [07:26:12]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 [07:26:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:26:12]wFMCommunicate request_size=10 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:26:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:26:12]RAPDU: 90 00 [07:26:12]wFMCommunicate OK [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 11 00 00 [07:26:12]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DB [07:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:26:12]wFMCommunicate OK [07:26:12]Detected FM SN is 0000000000874674 [07:26:12]Stored FM SN is 0000000000874674 [07:26:12]wFMCommunicate request_size=9 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 16 00 00 04 34 06 01 00 [07:26:12]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 34 06 01 00 00 00 CD [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:26:12]RAPDU: 90 00 [07:26:12]wFMCommunicate OK [07:26:12]FM PIN OK [07:26:12]wFMCommunicate request_size=8 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 14 04 00 03 02 00 01 [07:26:12]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:26:12]RAPDU: 90 00 [07:26:12]wFMCommunicate OK [07:26:12]wFMCommunicate request_size=13 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:26:12]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 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:26:12]RAPDU: 90 00 [07:26:12]wFMCommunicate OK [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 11 00 00 [07:26:12]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DF [07:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:26:12]wFMCommunicate OK [07:26:12]DocumentArchiveInit [07:26:12]Start Httpd... [07:26:12]Httpd thread 3067649380 created [07:26:12]Write to MH i2c: 01 00 00 0F 00 0F [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: 01 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: 01 07 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:26:12]MH Int Process started [07:26:12]Allocated Socket 8 [07:26:12]Bind OK [07:26:12]Listen OK [07:26:12]httpd running on port 8080 [07:26:12]Waiting for new connection... [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:29]accept exits with 9 [07:26:29]New connection [07:26:29]New thread 3067362660 created [07:26:29]Waiting for new connection... [07:26:29] Sock 9.Parse request [07:26:29]Sock 9.Check first char [07:26:29]Sock 9.First char is OK [07:26:29]request: POST /json_proto HTTP/1.0 [07:26:29]Method: POST [07:26:29]URL: /json_proto [07:26:29]Method is POST - this is cgi request [07:26:29]url: /json_proto [07:26:29]query_string will be loaded in cgi processing [07:26:29]execute_cgi json_proto POST (null) [07:26:29]execute_cgi path=json_proto method=POST [07:26:29]POST find Content-Length [07:26:29]Host: 172.17.42.196:8080 [07:26:29]Content-Length: 215 [07:26:29]Content-Type: application/json [07:26:29] [07:26:29]POST finish read [07:26:29]Found Content-Length = 215 [07:26:29]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" ] } } [07:26:29]execute_script... [07:26:29]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" ] } } [07:26:29]POST & json_proto [07:26:29]process_json_proto [07:26:29]json parsed OK: [07:26:29]protocol is kg_v1.0 [07:26:29]action value=get_value [07:26:29]process_action get_value [07:26:29]cmd_get_value [07:26:29]process_action get_value done [07:26:29]requested_data is exist [07:26:29]produce_requested_data [07:26:29]requested_item kkm.sn is exist - process it [07:26:29]requested_item kkm.ver is exist - process it [07:26:29]requested_item fm.sn is exist - process it [07:26:29]wFMCommunicate request_size=4 [07:26:29]MH_SAM_APDU [07:26:29]CAPDU: 80 11 00 00 [07:26:29]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:26:29]Write i2c OK [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: E2 [07:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: E2 17 00 [07:26:29]MH_I2C_Read... [07:26:29]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 36 37 34 90 00 E1 [07:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:26:29]wFMCommunicate OK [07:26:29]requested_item fd.num is exist - process it [07:26:29]SAM_PROTO_GetFieldsCounters [07:26:29]wFMCommunicate request_size=4 [07:26:29]MH_SAM_APDU [07:26:29]CAPDU: 80 13 00 00 [07:26:29]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:26:29]Write i2c OK [07:26:29]MH_I2C_Read... [07:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:29]Read from MH i2c: E2 [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: E2 62 00 [07:26:29]MH_I2C_Read... [07:26:29]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 50 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [07:26: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 50 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:26:29]wFMCommunicate OK [07:26:29]SAM_PROTO_GetFieldsCounters done [07:26:29]requested_item shift.num is exist - process it [07:26:29]requested_item shift.opened is exist - process it [07:26:29]req_shift_opened [07:26:29]FM_GetShiftState [07:26:29]SAM_PROTO_GetShiftState [07:26:29]wFMCommunicate request_size=4 [07:26:29]MH_SAM_APDU [07:26:29]CAPDU: 80 13 01 00 [07:26:29]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:26:29]Write i2c OK [07:26:29]MH_I2C_Read... [07:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:29]Read from MH i2c: E2 [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: E2 0E 00 [07:26:29]MH_I2C_Read... [07:26:29]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 2B [07:26:29]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:26:29]wFMCommunicate OK [07:26:29]SAM_PROTO_GetShiftState done [07:26:29]FM_GetShiftState done [07:26:29]req_shift_opened done [07:26:29]requested_item shift.open_date is exist - process it [07:26:29]req_shift_open_date [07:26:29]req_shift_open_date done [07:26:29]produce_requested_data done [07:26:29]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60496,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [07:26:29]process_action_free get_value [07:26:29]json_value_free [07:26:29]json_value_free done [07:26:29]process_json_proto returns [07:26:29]Send response to host [07:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60496,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [07:26:29]free response buf [07:26:29]execute_script done [07:26:29]execute_script returns [07:26:29]free content buf [07:26:29]Sock 9.Close socket [07:26:29]Sock 9.Thread stoped [07:26:29]accept exits with 7 [07:26:29]New connection [07:26:29]New thread 3067219300 created [07:26:29]Thread 3067362660 joined [07:26:29]Waiting for new connection... [07:26:29] Sock 7.Parse request [07:26:29]Sock 7.Check first char [07:26:29]Sock 7.First char is OK [07:26:29]request: POST /json_proto HTTP/1.0 [07:26:29]Method: POST [07:26:29]URL: /json_proto [07:26:29]Method is POST - this is cgi request [07:26:29]url: /json_proto [07:26:29]query_string will be loaded in cgi processing [07:26:29]execute_cgi json_proto POST (null) [07:26:29]execute_cgi path=json_proto method=POST [07:26:29]POST find Content-Length [07:26:29]Host: 172.17.42.196:8080 [07:26:29]Content-Length: 331 [07:26:29]Content-Type: application/json [07:26:29] [07:26:29]POST finish read [07:26:29]Found Content-Length = 331 [07:26:29]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" ] } } [07:26:29]execute_script... [07:26:29]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" ] } } [07:26:29]POST & json_proto [07:26:29]process_json_proto [07:26:29]json parsed OK: [07:26:29]protocol is kg_v1.0 [07:26:29]action value=get_value [07:26:29]process_action get_value [07:26:29]cmd_get_value [07:26:29]process_action get_value done [07:26:29]requested_data is exist [07:26:29]produce_requested_data [07:26:29]requested_item fm.sale.total is exist - process it [07:26:29]SAM_PROTO_GetFMData [07:26:29]wFMCommunicate request_size=4 [07:26:29]MH_SAM_APDU [07:26:29]CAPDU: 80 13 03 00 [07:26:29]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:26:29]Write i2c OK [07:26:29]MH_I2C_Read... [07:26:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:26:30]Read from MH i2c: E2 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 27 E8 00 00 69 04 A0 00 6F 04 04 00 96 E7 00 00 B1 04 04 00 3D 27 E1 6D 70 04 04 00 B4 8D C8 59 72 04 04 00 89 99 18 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D1 8D AB 0B 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 80 DE F8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 3F [07:26:30]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 27 E8 00 00 69 04 A0 00 6F 04 04 00 96 E7 00 00 B1 04 04 00 3D 27 E1 6D 70 04 04 00 B4 8D C8 59 72 04 04 00 89 99 18 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 D1 8D AB 0B 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 80 DE F8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 [07:26:30]wFMCommunicate OK [07:26:30]wFMCommunicate request_size=4 [07:26:30]MH_SAM_APDU [07:26:30]CAPDU: 80 17 00 00 [07:26:30]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:26:30]Write i2c OK [07:26:30]MH_I2C_Read... [07:26:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:26:30]Read from MH i2c: E2 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [07:26:30]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:26:30]wFMCommunicate OK [07:26:30]wFMCommunicate request_size=4 [07:26:30]MH_SAM_APDU [07:26:30]CAPDU: 80 17 00 00 [07:26:30]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:26:30]Write i2c OK [07:26:30]MH_I2C_Read... [07:26:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:26:30]Read from MH i2c: E2 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 15 00 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 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 90 00 43 [07:26:30]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 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 90 00 [07:26:30]wFMCommunicate OK [07:26:30]wFMCommunicate request_size=4 [07:26:30]MH_SAM_APDU [07:26:30]CAPDU: 80 17 00 00 [07:26:30]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:26:30]Write i2c OK [07:26:30]MH_I2C_Read... [07:26:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:26:30]Read from MH i2c: E2 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 [07:26:30]MH_I2C_Read... [07:26:30]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [07:26:30]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:26:30]wFMCommunicate OK [07:26:30]wFMCommunicate request_size=4 [07:26:30]MH_SAM_APDU [07:26:30]CAPDU: 80 17 00 00 [07:26:30]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:26:30]Write i2c OK [07:26:30]MH_I2C_Read... [07:26:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [07:26:31]Read from MH i2c: E2 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 DF 00 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 DF 00 17 00 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 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 77 [07:26:31]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 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:26:31]wFMCommunicate OK [07:26:31]SAM_PROTO_GetFMData done [07:26:31]requested_item fm.sale_refund.total is exist - process it [07:26:31]requested_item fm.buy.total is exist - process it [07:26:31]requested_item shift.sale.total is exist - process it [07:26:31]SAM_PROTO_GetShiftData [07:26:31]wFMCommunicate request_size=4 [07:26:31]MH_SAM_APDU [07:26:31]CAPDU: 80 13 02 00 [07:26:31]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [07:26:31]Write i2c OK [07:26:31]MH_I2C_Read... [07:26:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:26:31]Read from MH i2c: E2 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 FD 00 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 1C 00 00 00 69 04 9B 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 E2 FF 0A 70 04 03 00 04 6F 05 72 04 03 00 DE 90 05 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 06 2B 01 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 E8 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 [07:26:31]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1C 00 00 00 69 04 9B 00 6F 04 04 00 1C 00 00 00 B1 04 03 00 E2 FF 0A 70 04 03 00 04 6F 05 72 04 03 00 DE 90 05 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 06 2B 01 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 E8 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:26:31]wFMCommunicate OK [07:26:31]wFMCommunicate request_size=4 [07:26:31]MH_SAM_APDU [07:26:31]CAPDU: 80 17 00 00 [07:26:31]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [07:26:31]Write i2c OK [07:26:31]MH_I2C_Read... [07:26:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:26:31]Read from MH i2c: E2 [07:26:31]MH_I2C_Read... [07:26:31]Read from MH i2c: E2 FD 00 [07:26:31]MH_I2C_Read... [07:26:31]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 [07:26:31]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 [07:26:31]wFMCommunicate OK [07:26:31]wFMCommunicate request_size=4 [07:26:31]MH_SAM_APDU [07:26:31]CAPDU: 80 17 00 00 [07:26:31]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [07:26:31]Write i2c OK [07:26:31]MH_I2C_Read... [07:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:26:32]Read from MH i2c: E2 [07:26:32]MH_I2C_Read... [07:26:32]Read from MH i2c: E2 FD 00 [07:26:32]MH_I2C_Read... [07:26:32]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 [07:26:32]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 [07:26:32]wFMCommunicate OK [07:26:32]wFMCommunicate request_size=4 [07:26:32]MH_SAM_APDU [07:26:32]CAPDU: 80 17 00 00 [07:26:32]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [07:26:32]Write i2c OK [07:26:32]MH_I2C_Read... [07:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:26:32]Read from MH i2c: E2 [07:26:32]MH_I2C_Read... [07:26:32]Read from MH i2c: E2 FD 00 [07:26:32]MH_I2C_Read... [07:26:32]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 [07:26:32]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 [07:26:32]wFMCommunicate OK [07:26:32]wFMCommunicate request_size=4 [07:26:32]MH_SAM_APDU [07:26:32]CAPDU: 80 17 00 00 [07:26:32]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [07:26:32]Write i2c OK [07:26:32]MH_I2C_Read... [07:26:32]OFD Sender: No OFD packet to send [07:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:26:32]Read from MH i2c: E2 [07:26:32]MH_I2C_Read... [07:26:32]Read from MH i2c: E2 CB 00 [07:26:32]MH_I2C_Read... [07:26:32]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 [07:26:32]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 [07:26:32]wFMCommunicate OK [07:26:32]SAM_PROTO_GetShiftData done [07:26:32]requested_item shift.sale.total_cash is exist - process it [07:26:32]requested_item shift.sale_refund.total is exist - process it [07:26:32]requested_item shift.sale_refund.total_cash is exist - process it [07:26:32]requested_item shift.buy.total is exist - process it [07:26:32]requested_item shift.buy.total_cash is exist - process it [07:26:32]produce_requested_data done [07:26:32]produce_requested_data return {"fm.sale.total":18434721.89,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":7208.66,"shift.sale.total_cash":3561.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} [07:26:32]process_action_free get_value [07:26:32]json_value_free [07:26:32]json_value_free done [07:26:32]process_json_proto returns [07:26:32]Send response to host [07:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18434721.89,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":7208.66,"shift.sale.total_cash":3561.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}}} [07:26:32]free response buf [07:26:32]execute_script done [07:26:32]execute_script returns [07:26:32]free content buf [07:26:32]Sock 7.Close socket [07:26:32]Sock 7.Thread stoped [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:37]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07: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:23]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:24]accept exits with 9 [07:54:24]New connection [07:54:24]New thread 3067362660 created [07:54:24]Thread 3067219300 joined [07:54:24]Waiting for new connection... [07:54:24] Sock 9.Parse request [07:54:24]Sock 9.Check first char [07:54:24]Sock 9.First char is OK [07:54:24]request: POST /json_proto HTTP/1.0 [07:54:24]Method: POST [07:54:24]URL: /json_proto [07:54:24]Method is POST - this is cgi request [07:54:24]url: /json_proto [07:54:24]query_string will be loaded in cgi processing [07:54:24]execute_cgi json_proto POST (null) [07:54:24]execute_cgi path=json_proto method=POST [07:54:24]POST find Content-Length [07:54:24]Host: 172.17.42.196:8080 [07:54:24]Content-Length: 652 [07:54:24]Content-Type: application/json [07:54:24] [07:54:24]POST finish read [07:54:24]Found Content-Length = 652 [07:54:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200140", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:24]execute_script... [07:54:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200140", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:24]POST & json_proto [07:54:24]process_json_proto [07:54:24]json parsed OK: [07:54:24]protocol is kg_v1.0 [07:54:24]action value=close_receipt [07:54:24]process_action close_receipt [07:54:24]cmd_close_receipt [07:54:24]MH_GetDate [07:54:24]Write to MH i2c: F0 00 00 1D 00 0C [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: F0 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: F0 09 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: F0 09 00 1D 00 00 B0 F1 1D 67 FF C4 6B 64 CC [07:54:24]GetLastDocTimeStamp 48 [07:54:24]current date 1730015664 [07:54:24]FM_GetShiftState [07:54:24]SAM_PROTO_GetShiftState [07:54:24]wFMCommunicate request_size=4 [07:54:24]MH_SAM_APDU [07:54:24]CAPDU: 80 13 01 00 [07:54:24]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [07:54:24]Write i2c OK [07:54:24]MH_I2C_Read... [07:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:24]Read from MH i2c: E2 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 0E 00 [07:54:24]MH_I2C_Read... [07:54:24]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 37 [07:54:24]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:54:24]wFMCommunicate OK [07:54:24]SAM_PROTO_GetShiftState done [07:54:24]FM_GetShiftState done [07:54:24]opened in 1729989505 [07:54:24]opened+sec_in_day 1730075905 [07:54:24]quantity*price = 12500 [07:54:24]sum+1 = 12501 [07:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 29 27.10.2024 07:54 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60497 ФПД: 39073434288908 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075424&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60497&fm=39073434288908&tin=02508201610067®Number=0000000000091622&sum=12500 0 [07:54:25]StoreToDocumentArchive [07:54:25]shift 532 fd 60497 [07:54:25]save to /storage/0532/doc_00060497 [07:54:25]save last doc name /storage/0532/doc_00060497 to /storage/kkm_last_doc_name [07:54:25]save OK [07:54:25]Clear old archive folders... [07:54:25]ProcessDocumentItem done err = 0, tmpTLVsize=284 [07:54:25]tlvbuf is 001DA7C0 [07:54:25]SAM_PROTO_ClearQueue [07:54:25]wFMCommunicate request_size=4 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 09 00 00 [07:54:25]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [07:54:25]RAPDU: 90 00 [07:54:25]wFMCommunicate OK [07:54:25]SAM_PROTO_ClearQueue done [07:54:25]KKMCreateOFDPacket [07:54:25]OFDProtocolAddRootSTLVToBuf [07:54:25]FM_MakeSignedData [07:54:25]FM_MakeSignedData [07:54:25]SAM_PROTO_SignData [07:54:25]wFMCommunicate request_size=4 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 0D 01 02 [07:54:25]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [07:54:25]RAPDU: 90 00 [07:54:25]wFMCommunicate OK [07:54:25]wFMCommunicate request_size=255 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B0 F1 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 [07:54:25]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B0 F1 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 00 00 9A [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [07:54:25]RAPDU: 90 00 [07:54:25]wFMCommunicate OK [07:54:25]wFMCommunicate request_size=43 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 51 EC 00 00 35 04 06 00 23 89 7E 2B C3 0C [07:54:25]Write to MH i2c: E2 2E 00 2E 00 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 51 EC 00 00 35 04 06 00 23 89 7E 2B C3 0C 00 00 F5 [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [07:54:25]RAPDU: 90 00 [07:54:25]wFMCommunicate OK [07:54:25]wFMCommunicate request_size=4 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 0D 03 02 [07:54:25]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 0B 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 0B 00 2F 00 00 F3 7F 6C AD 1C 4E D5 11 90 00 86 [07:54:25]RAPDU: F3 7F 6C AD 1C 4E D5 11 90 00 [07:54:25]wFMCommunicate OK [07:54:25]SAM_PROTO_SignData done [07:54:25]FM_MakeSignedData done [07:54:25]CreateOFDProtocolMessage [07:54:25]wFMCommunicate request_size=4 [07:54:25]MH_SAM_APDU [07:54:25]CAPDU: 80 11 00 00 [07:54:25]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:25]Read from MH i2c: E2 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: E2 17 00 [07:54:25]MH_I2C_Read... [07:54:25]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 36 37 34 90 00 01 [07:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:54:25]wFMCommunicate OK [07:54:25]CreateOFDProtocolMessage done [07:54:25]OFDSenderStorePacket 60497 [07:54:25]StoreOFDPacket docnum=60497 [07:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 30 01 00 00 68 47 28 01 4E E3 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B0 F1 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 51 EC 00 00 35 04 06 00 23 89 7E 2B C3 0C F3 7F 6C AD 1C 4E D5 11 [07:54:25]CheckFolder [07:54:25]dirname=/storage/ofd_packets [07:54:25]CheckFolder done [07:54:25]ProducePacketName [07:54:25]name=ofd_packets/00060497 [07:54:25]NVStorageSaveData ofd_packets/00060497 [07:54:25]File name is /storage/ofd_packets/00060497 [07:54:25]Write 334 bytes [07:54:25]NVStorageSaveData done [07:54:25]OFDSenderStorePacket done [07:54:25]KKMCreateOFDPacket done [07:54:25]NVStorageSaveData kkm_last_timestamp [07:54:25]File name is /storage/kkm_last_timestamp [07:54:25]Write 4 bytes [07:54:25]NVStorageSaveData done [07:54:25]ExternCall_PrintAddStr [07:54:25]wPrintStart [07:54:25]Write to MH i2c: 01 00 00 31 00 31 [07:54:25]Write i2c OK [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 07 00 [07:54:25]MH_I2C_Read... [07:54:25]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [07:54:25]RasterBufferAndPrint [07:54:25]line Счет N : (3)200140 [07:54:25]line ИНН: 02508201610067 [07:54:25]line Контрольно-Кассовый Чек [07:54:25]line ПРОДАЖА [07:54:25]line Товар: 2000036190018 [07:54:25]line Кофе Американо XL(GABB TRADE) [07:54:25]line 1.000 * 125.00 [07:54:25]line = 125.00 [07:54:25]line НДС 12% НСП 1% [07:54:25]line > о реализуемом товаре [07:54:25]line ИТОГО: 125.00 [07:54:25]line НСП 1% : 1.11 [07:54:25]line НДС 12% : 13.27 [07:54:25]line Наличными: 125.00 [07:54:25]line Безнал.: 0.00 [07:54:25]line Место: АЗС № 87 "Партнер Нефть" [07:54:25]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [07:54:25]line СНО: Общий режим [07:54:25]line Чек 29 27.10.2024 07:54 [07:54:25]line Смена: 532 ФФД: 1.0 [07:54:25]line ЗНМ: 0300000084 [07:54:25]line РНМ: 0000000000091622 [07:54:25]line Версия ККМ: 001 [07:54:25]line ФМ: 0000000000874674 [07:54:25]line ФД: 60497 [07:54:25]line ФПД: 39073434288908 [07:54:25]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075424&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60497&fm=39073434288908&tin=02508201610067®Number=0000000000091622&sum=12500 [07:54:25]OFD Sender: Processing packet 60497 [packets to send 30, broken 29] [07:54:25]ProducePacketName [07:54:25]name=ofd_packets/00060497 [07:54:25]OFD Sender: To server: pG, [07:54:25]CommunicateWithHost lk.salyk.kg:30040 [07:54:25]ConnectInit lk.salyk.kg [07:54:25]line 0 [07:54:25]written 0, free lines is 4095 [07:54:25]Connected sock=10 [07:54:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 30 01 00 00 68 47 28 01 4E E3 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 B0 F1 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 51 EC 00 00 35 04 06 00 23 89 7E 2B C3 0C F3 7F 6C AD 1C 4E D5 11 [07:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 69 79 47 00 D0 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 36 37 34 10 04 04 00 51 EC 00 00 F4 03 04 00 98 97 1D 67 B6 04 01 00 00 AE 79 4B 3B A0 4E FA 79 [07:54:26]CommunicateWithHost err = 0 [07:54:26]CheckOFDResponse [07:54:26]1017 (14) - 77093643461234 [07:54:26]1041 (16) - 0000000000874674 [07:54:26]1040 (4) - 60497 [07:54:26]1012 (4) - 27.10.2024 01:30 [07:54:26]1206 (1) - 0 [07:54:26]OFD Sender: Remove packet 60497 [07:54:26]ProducePacketName [07:54:26]name=ofd_packets/00060497 [07:54:26]NVStorageDeleteData [07:54:26]Write to MH i2c: 01 00 00 5A 00 5A [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: 01 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: 01 07 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 E8 0C 55 [07:54:26]RasterBufferAndPrint [07:54:26]line [07:54:26]line [07:54:26]line [07:54:26]line [07:54:26]line [07:54:26]written 0, free lines is 3310 [07:54:26]MH_Cut [07:54:26]Write to MH i2c: D1 01 00 61 00 01 33 [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: D1 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: D1 01 00 [07:54:26]MH_I2C_Read... [07:54:26]Read from MH i2c: D1 01 00 61 00 00 32 [07:54:26]Write to MH i2c: 01 00 00 62 00 62 [07:54:26]Write i2c OK [07:54:26]MH_I2C_Read... [07:54:26]OFD Sender: No OFD packet to send [07:54:27]*** Cut start [07:54:27]*** Partial cut [07:54:27]*** CUTSNS_PIN = 1 [07:54:27]*** CUTSNS_PIN = 0 [07:54:27]*** Brake cut motor [07:54:27]Read from MH i2c: 01 [07:54:27]MH_I2C_Read... [07:54:27]*** Stop cut motor [07:54:27]*** Cut end [07:54:27]Read from MH i2c: 01 07 00 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [07:54:27]process_action close_receipt done [07:54:27]requested_data is exist [07:54:27]produce_requested_data [07:54:27]requested_item fm.sn is exist - process it [07:54:27]wFMCommunicate request_size=4 [07:54:27]MH_SAM_APDU [07:54:27]CAPDU: 80 11 00 00 [07:54:27]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:27]Read from MH i2c: E2 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 17 00 [07:54:27]MH_I2C_Read... [07:54:27]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 36 37 34 90 00 34 [07:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [07:54:27]wFMCommunicate OK [07:54:27]requested_item fd.num is exist - process it [07:54:27]SAM_PROTO_GetFieldsCounters [07:54:27]wFMCommunicate request_size=4 [07:54:27]MH_SAM_APDU [07:54:27]CAPDU: 80 13 00 00 [07:54:27]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:27]Read from MH i2c: E2 [07:54:27]MH_I2C_Read... [07:54:27]Read from MH i2c: E2 62 00 [07:54:27]MH_I2C_Read... [07:54:27]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 51 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [07:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 51 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:27]wFMCommunicate OK [07:54:27]SAM_PROTO_GetFieldsCounters done [07:54:27]requested_item shift.num is exist - process it [07:54:27]requested_item shift.opened is exist - process it [07:54:27]req_shift_opened [07:54:27]FM_GetShiftState [07:54:27]SAM_PROTO_GetShiftState [07:54:27]wFMCommunicate request_size=4 [07:54:27]MH_SAM_APDU [07:54:27]CAPDU: 80 13 01 00 [07:54:27]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [07:54:27]Write i2c OK [07:54:27]MH_I2C_Read... [07:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:28]Read from MH i2c: E2 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 0E 00 [07:54:28]MH_I2C_Read... [07:54:28]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 7E [07:54:28]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [07:54:28]wFMCommunicate OK [07:54:28]SAM_PROTO_GetShiftState done [07:54:28]FM_GetShiftState done [07:54:28]req_shift_opened done [07:54:28]requested_item shift.open_date is exist - process it [07:54:28]req_shift_open_date [07:54:28]req_shift_open_date done [07:54:28]produce_requested_data done [07:54:28]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60497,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [07:54:28]process_action_free close_receipt [07:54:28]json_value_free [07:54:28]json_value_free done [07:54:28]process_json_proto returns [07:54:28]Send response to host [07:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60497,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [07:54:28]free response buf [07:54:28]execute_script done [07:54:28]execute_script returns [07:54:28]free content buf [07:54:28]Sock 9.Close socket [07:54:28]Sock 9.Thread stoped [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:34]accept exits with 7 [08:01:34]New connection [08:01:34]New thread 3067219300 created [08:01:34]Thread 3067362660 joined [08:01:34]Waiting for new connection... [08:01:34] Sock 7.Parse request [08:01:34]Sock 7.Check first char [08:01:34]Sock 7.First char is OK [08:01:34]request: POST /json_proto HTTP/1.0 [08:01:34]Method: POST [08:01:34]URL: /json_proto [08:01:34]Method is POST - this is cgi request [08:01:34]url: /json_proto [08:01:34]query_string will be loaded in cgi processing [08:01:34]execute_cgi json_proto POST (null) [08:01:34]execute_cgi path=json_proto method=POST [08:01:34]POST find Content-Length [08:01:34]Host: 172.17.42.196:8080 [08:01:34]Content-Length: 773 [08:01:34]Content-Type: application/json [08:01:34] [08:01:34]POST finish read [08:01:34]Found Content-Length = 773 [08:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200141", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:34]execute_script... [08:01:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200141", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:34]POST & json_proto [08:01:34]process_json_proto [08:01:34]json parsed OK: [08:01:34]protocol is kg_v1.0 [08:01:34]action value=close_receipt [08:01:34]process_action close_receipt [08:01:34]cmd_close_receipt [08:01:34]MH_GetDate [08:01:34]Write to MH i2c: F0 00 00 66 00 55 [08:01:34]Write i2c OK [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: F0 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: F0 09 00 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: F0 09 00 66 00 00 5E F3 1D 67 FF C4 6B 64 C5 [08:01:34]GetLastDocTimeStamp 1730015664 [08:01:34]current date 1730016094 [08:01:34]FM_GetShiftState [08:01:34]SAM_PROTO_GetShiftState [08:01:34]wFMCommunicate request_size=4 [08:01:34]MH_SAM_APDU [08:01:34]CAPDU: 80 13 01 00 [08:01:34]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [08:01:34]Write i2c OK [08:01:34]MH_I2C_Read... [08:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:34]Read from MH i2c: E2 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: E2 0E 00 [08:01:34]MH_I2C_Read... [08:01:34]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 80 [08:01:34]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:01:34]wFMCommunicate OK [08:01:34]SAM_PROTO_GetShiftState done [08:01:34]FM_GetShiftState done [08:01:34]opened in 1729989505 [08:01:34]opened+sec_in_day 1730075905 [08:01:34]quantity*price = 13000 [08:01:34]sum+1 = 13001 [08:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 30 27.10.2024 08:01 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60498 ФПД: 162603455699436 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080134&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60498&fm=162603455699436&tin=02508201610067®Number=0000000000091622&sum=13000 0 [08:01:35]StoreToDocumentArchive [08:01:35]shift 532 fd 60498 [08:01:35]save to /storage/0532/doc_00060498 [08:01:35]save last doc name /storage/0532/doc_00060498 to /storage/kkm_last_doc_name [08:01:35]save OK [08:01:35]Clear old archive folders... [08:01:35]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:01:35]tlvbuf is 00202750 [08:01:35]SAM_PROTO_ClearQueue [08:01:35]wFMCommunicate request_size=4 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 09 00 00 [08:01:35]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [08:01:35]RAPDU: 90 00 [08:01:35]wFMCommunicate OK [08:01:35]SAM_PROTO_ClearQueue done [08:01:35]KKMCreateOFDPacket [08:01:35]OFDProtocolAddRootSTLVToBuf [08:01:35]FM_MakeSignedData [08:01:35]FM_MakeSignedData [08:01:35]SAM_PROTO_SignData [08:01:35]wFMCommunicate request_size=4 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 0D 01 02 [08:01:35]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [08:01:35]RAPDU: 90 00 [08:01:35]wFMCommunicate OK [08:01:35]wFMCommunicate request_size=255 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5E F3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [08:01:35]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5E F3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 01 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [08:01:35]RAPDU: 90 00 [08:01:35]wFMCommunicate OK [08:01:35]wFMCommunicate request_size=41 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 52 EC 00 00 35 04 06 00 93 E3 11 37 59 EC [08:01:35]Write to MH i2c: E2 2C 00 77 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 52 EC 00 00 35 04 06 00 93 E3 11 37 59 EC 00 00 05 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [08:01:35]RAPDU: 90 00 [08:01:35]wFMCommunicate OK [08:01:35]wFMCommunicate request_size=4 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 0D 03 02 [08:01:35]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 0B 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 0B 00 78 00 00 86 CF C4 37 03 10 41 47 90 00 DF [08:01:35]RAPDU: 86 CF C4 37 03 10 41 47 90 00 [08:01:35]wFMCommunicate OK [08:01:35]SAM_PROTO_SignData done [08:01:35]FM_MakeSignedData done [08:01:35]CreateOFDProtocolMessage [08:01:35]wFMCommunicate request_size=4 [08:01:35]MH_SAM_APDU [08:01:35]CAPDU: 80 11 00 00 [08:01:35]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:35]Read from MH i2c: E2 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: E2 17 00 [08:01:35]MH_I2C_Read... [08:01:35]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 36 37 34 90 00 4A [08:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:01:35]wFMCommunicate OK [08:01:35]CreateOFDProtocolMessage done [08:01:35]OFDSenderStorePacket 60498 [08:01:35]StoreOFDPacket docnum=60498 [08:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 4F D7 26 01 DA 32 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5E F3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 52 EC 00 00 35 04 06 00 93 E3 11 37 59 EC 86 CF C4 37 03 10 41 47 [08:01:35]CheckFolder [08:01:35]dirname=/storage/ofd_packets [08:01:35]CheckFolder done [08:01:35]ProducePacketName [08:01:35]name=ofd_packets/00060498 [08:01:35]NVStorageSaveData ofd_packets/00060498 [08:01:35]File name is /storage/ofd_packets/00060498 [08:01:35]Write 332 bytes [08:01:35]NVStorageSaveData done [08:01:35]OFDSenderStorePacket done [08:01:35]KKMCreateOFDPacket done [08:01:35]NVStorageSaveData kkm_last_timestamp [08:01:35]File name is /storage/kkm_last_timestamp [08:01:35]Write 4 bytes [08:01:35]NVStorageSaveData done [08:01:35]ExternCall_PrintAddStr [08:01:35]wPrintStart [08:01:35]Write to MH i2c: 01 00 00 7A 00 7A [08:01:35]Write i2c OK [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: 01 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: 01 07 00 [08:01:35]MH_I2C_Read... [08:01:35]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [08:01:35]RasterBufferAndPrint [08:01:35]line Счет N : (3)200141 [08:01:35]line ИНН: 02508201610067 [08:01:35]line Контрольно-Кассовый Чек [08:01:35]line ПРОДАЖА [08:01:35]line Товар: 2000036220012 [08:01:35]line Кофе Капучино XL(GABB TRADE) [08:01:35]line 1.000 * 130.00 [08:01:35]line = 130.00 [08:01:35]line НДС 12% НСП 1% [08:01:35]line > о реализуемом товаре [08:01:35]line ИТОГО: 130.00 [08:01:35]line НСП 1% : 1.15 [08:01:35]line НДС 12% : 13.80 [08:01:35]line Наличными: 0.00 [08:01:35]line Безнал.: 130.00 [08:01:35]line Место: АЗС № 87 "Партнер Нефть" [08:01:35]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:01:35]line СНО: Общий режим [08:01:35]line Чек 30 27.10.2024 08:01 [08:01:35]line Смена: 532 ФФД: 1.0 [08:01:35]line ЗНМ: 0300000084 [08:01:35]line РНМ: 0000000000091622 [08:01:35]line Версия ККМ: 001 [08:01:35]line Платежная система: Mbank [08:01:35]line ФМ: 0000000000874674 [08:01:35]line ФД: 60498 [08:01:35]line ФПД: 162603455699436 [08:01:36]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080134&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60498&fm=162603455699436&tin=02508201610067®Number=0000000000091622&sum=13000 [08:01:36]line 0 [08:01:36]OFD Sender: Processing packet 60498 [packets to send 30, broken 29] [08:01:36]ProducePacketName [08:01:36]name=ofd_packets/00060498 [08:01:36]OFD Sender: To server: pG, [08:01:36]CommunicateWithHost lk.salyk.kg:30040 [08:01:36]ConnectInit lk.salyk.kg [08:01:36]written 0, free lines is 4095 [08:01:36]Connected sock=10 [08:01: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 36 37 34 2E 01 00 00 4F D7 26 01 DA 32 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 5E F3 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 52 EC 00 00 35 04 06 00 93 E3 11 37 59 EC 86 CF C4 37 03 10 41 47 [08:01:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 40 39 47 00 B7 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 52 EC 00 00 F4 03 04 00 46 99 1D 67 B6 04 01 00 00 32 19 F3 FC 71 87 42 AF [08:01:36]CommunicateWithHost err = 0 [08:01:36]CheckOFDResponse [08:01:36]1017 (14) - 77093643461234 [08:01:36]1041 (16) - 0000000000874674 [08:01:36]1040 (4) - 60498 [08:01:36]1012 (4) - 27.10.2024 01:37 [08:01:36]1206 (1) - 0 [08:01:36]OFD Sender: Remove packet 60498 [08:01:36]ProducePacketName [08:01:36]name=ofd_packets/00060498 [08:01:36]NVStorageDeleteData [08:01:36]Write to MH i2c: 01 00 00 A4 00 A4 [08:01:36]Write i2c OK [08:01:36]MH_I2C_Read... [08:01:36]Read from MH i2c: 01 [08:01:36]MH_I2C_Read... [08:01:36]Read from MH i2c: 01 07 00 [08:01:36]MH_I2C_Read... [08:01:36]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 EB 0C A2 [08:01:36]RasterBufferAndPrint [08:01:36]line [08:01:36]line [08:01:36]line [08:01:36]line [08:01:36]line [08:01:36]written 0, free lines is 3313 [08:01:36]MH_Cut [08:01:36]Write to MH i2c: D1 01 00 AB 00 01 7D [08:01:36]Write i2c OK [08:01:36]MH_I2C_Read... [08:01:36]Read from MH i2c: D1 [08:01:36]MH_I2C_Read... [08:01:36]Read from MH i2c: D1 01 00 [08:01:36]MH_I2C_Read... [08:01:36]Read from MH i2c: D1 01 00 AB 00 00 7C [08:01:36]Write to MH i2c: 01 00 00 AC 00 AC [08:01:36]Write i2c OK [08:01:36]MH_I2C_Read... [08:01:37]OFD Sender: No OFD packet to send [08:01:37]*** Cut start [08:01:37]*** Partial cut [08:01:37]*** CUTSNS_PIN = 1 [08:01:37]*** CUTSNS_PIN = 0 [08:01:37]*** Brake cut motor [08:01:38]Read from MH i2c: 01 [08:01:38]MH_I2C_Read... [08:01:38]*** Stop cut motor [08:01:38]*** Cut end [08:01:38]Read from MH i2c: 01 07 00 [08:01:38]MH_I2C_Read... [08:01:38]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [08:01:38]process_action close_receipt done [08:01:38]requested_data is exist [08:01:38]produce_requested_data [08:01:38]requested_item fm.sn is exist - process it [08:01:38]wFMCommunicate request_size=4 [08:01:38]MH_SAM_APDU [08:01:38]CAPDU: 80 11 00 00 [08:01:38]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [08:01:38]Write i2c OK [08:01:38]MH_I2C_Read... [08:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:38]Read from MH i2c: E2 [08:01:38]MH_I2C_Read... [08:01:38]Read from MH i2c: E2 17 00 [08:01:38]MH_I2C_Read... [08:01:38]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 36 37 34 90 00 7E [08:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:01:38]wFMCommunicate OK [08:01:38]requested_item fd.num is exist - process it [08:01:38]SAM_PROTO_GetFieldsCounters [08:01:38]wFMCommunicate request_size=4 [08:01:38]MH_SAM_APDU [08:01:38]CAPDU: 80 13 00 00 [08:01:38]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [08:01:38]Write i2c OK [08:01:38]MH_I2C_Read... [08:01:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:38]Read from MH i2c: E2 [08:01:38]MH_I2C_Read... [08:01:38]Read from MH i2c: E2 62 00 [08:01:38]MH_I2C_Read... [08:01:38]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 52 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [08:01: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 52 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:38]wFMCommunicate OK [08:01:38]SAM_PROTO_GetFieldsCounters done [08:01:38]requested_item shift.num is exist - process it [08:01:38]requested_item shift.opened is exist - process it [08:01:38]req_shift_opened [08:01:38]FM_GetShiftState [08:01:38]SAM_PROTO_GetShiftState [08:01:38]wFMCommunicate request_size=4 [08:01:38]MH_SAM_APDU [08:01:38]CAPDU: 80 13 01 00 [08:01:38]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [08:01:38]Write i2c OK [08:01:38]MH_I2C_Read... [08:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:38]Read from MH i2c: E2 [08:01:38]MH_I2C_Read... [08:01:38]Read from MH i2c: E2 0E 00 [08:01:38]MH_I2C_Read... [08:01:38]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 C8 [08:01:38]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:01:38]wFMCommunicate OK [08:01:38]SAM_PROTO_GetShiftState done [08:01:38]FM_GetShiftState done [08:01:38]req_shift_opened done [08:01:38]requested_item shift.open_date is exist - process it [08:01:38]req_shift_open_date [08:01:38]req_shift_open_date done [08:01:38]produce_requested_data done [08:01:38]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60498,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:01:38]process_action_free close_receipt [08:01:38]json_value_free [08:01:38]json_value_free done [08:01:38]process_json_proto returns [08:01:38]Send response to host [08:01:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60498,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:01:38]free response buf [08:01:38]execute_script done [08:01:38]execute_script returns [08:01:38]free content buf [08:01:38]Sock 7.Close socket [08:01:38]Sock 7.Thread stoped [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:51]accept exits with 9 [08:04:51]New connection [08:04:51]New thread 3067362660 created [08:04:51]Thread 3067219300 joined [08:04:51]Waiting for new connection... [08:04:51] Sock 9.Parse request [08:04:51]Sock 9.Check first char [08:04:51]Sock 9.First char is OK [08:04:51]request: POST /json_proto HTTP/1.0 [08:04:51]Method: POST [08:04:51]URL: /json_proto [08:04:51]Method is POST - this is cgi request [08:04:51]url: /json_proto [08:04:51]query_string will be loaded in cgi processing [08:04:51]execute_cgi json_proto POST (null) [08:04:51]execute_cgi path=json_proto method=POST [08:04:51]POST find Content-Length [08:04:51]Host: 172.17.42.196:8080 [08:04:51]Content-Length: 1765 [08:04:51]Content-Type: application/json [08:04:51] [08:04:51]POST finish read [08:04:51]Found Content-Length = 1765 [08:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200142", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 817.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:51]execute_script... [08:04:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200142", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 4.000, "sum" : 28.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 817.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:51]POST & json_proto [08:04:51]process_json_proto [08:04:51]json parsed OK: [08:04:51]protocol is kg_v1.0 [08:04:51]action value=close_receipt [08:04:51]process_action close_receipt [08:04:51]cmd_close_receipt [08:04:51]MH_GetDate [08:04:51]Write to MH i2c: F0 00 00 B0 00 9F [08:04:51]Write i2c OK [08:04:51]MH_I2C_Read... [08:04:51]Read from MH i2c: F0 [08:04:51]MH_I2C_Read... [08:04:51]Read from MH i2c: F0 09 00 [08:04:51]MH_I2C_Read... [08:04:51]Read from MH i2c: F0 09 00 B0 00 00 24 F4 1D 67 FF C4 6B 64 D6 [08:04:51]GetLastDocTimeStamp 1730016094 [08:04:51]current date 1730016292 [08:04:51]FM_GetShiftState [08:04:51]SAM_PROTO_GetShiftState [08:04:51]wFMCommunicate request_size=4 [08:04:51]MH_SAM_APDU [08:04:51]CAPDU: 80 13 01 00 [08:04:51]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [08:04:51]Write i2c OK [08:04:51]MH_I2C_Read... [08:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:51]Read from MH i2c: E2 [08:04:51]MH_I2C_Read... [08:04:51]Read from MH i2c: E2 0E 00 [08:04:51]MH_I2C_Read... [08:04:51]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CA [08:04:51]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:04:51]wFMCommunicate OK [08:04:51]SAM_PROTO_GetShiftState done [08:04:51]FM_GetShiftState done [08:04:51]opened in 1729989505 [08:04:51]opened+sec_in_day 1730075905 [08:04:51]quantity*price = 56000 [08:04:51]sum+1 = 56001 [08:04:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 4.000 * 7.00 = 28.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000034730018 Кофе Американо (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 817.00 НСП 1% : 7.23 НДС 12% : 86.75 Наличными: 817.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 31 27.10.2024 08:04 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60499 ФПД: 200549930174350 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080452&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60499&fm=200549930174350&tin=02508201610067®Number=0000000000091622&sum=81700 0 [08:04:53]StoreToDocumentArchive [08:04:53]shift 532 fd 60499 [08:04:53]save to /storage/0532/doc_00060499 [08:04:53]save last doc name /storage/0532/doc_00060499 to /storage/kkm_last_doc_name [08:04:53]save OK [08:04:53]Clear old archive folders... [08:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=736 [08:04:53]tlvbuf is 001CB220 [08:04:53]SAM_PROTO_ClearQueue [08:04:53]wFMCommunicate request_size=4 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 09 00 00 [08:04:53]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [08:04:53]RAPDU: 90 00 [08:04:53]wFMCommunicate OK [08:04:53]SAM_PROTO_ClearQueue done [08:04:53]KKMCreateOFDPacket [08:04:53]OFDProtocolAddRootSTLVToBuf [08:04:53]FM_MakeSignedData [08:04:53]FM_MakeSignedData [08:04:53]SAM_PROTO_SignData [08:04:53]wFMCommunicate request_size=4 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 0D 01 02 [08:04:53]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [08:04:53]RAPDU: 90 00 [08:04:53]wFMCommunicate OK [08:04:53]wFMCommunicate request_size=255 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 0D 02 02 FA 03 00 E0 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 [08:04:53]Write to MH i2c: E2 02 01 C0 00 80 0D 02 02 FA 00 03 00 E0 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 00 00 C7 [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:53]Read from MH i2c: E2 03 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [08:04:53]RAPDU: 90 00 [08:04:53]wFMCommunicate OK [08:04:53]wFMCommunicate request_size=255 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 0D 02 02 FA 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 [08:04:53]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 00 00 D0 [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [08:04:53]RAPDU: 90 00 [08:04:53]wFMCommunicate OK [08:04:53]wFMCommunicate request_size=245 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 0D 02 02 F0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 21 00 00 00 00 07 04 06 00 24 3F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 24 F4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 53 EC 00 00 35 04 06 00 B6 66 2B 59 07 8E [08:04:53]Write to MH i2c: E2 F8 00 C2 00 80 0D 02 02 F0 00 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 21 00 00 00 00 07 04 06 00 24 3F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 24 F4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 53 EC 00 00 35 04 06 00 B6 66 2B 59 07 8E 00 00 F3 [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [08:04:54]RAPDU: 90 00 [08:04:54]wFMCommunicate OK [08:04:54]wFMCommunicate request_size=4 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 0D 03 02 [08:04:54]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 0B 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 0B 00 C3 00 00 ED 48 1D 6D DC FF 09 F9 90 00 DB [08:04:54]RAPDU: ED 48 1D 6D DC FF 09 F9 90 00 [08:04:54]wFMCommunicate OK [08:04:54]SAM_PROTO_SignData done [08:04:54]FM_MakeSignedData done [08:04:54]CreateOFDProtocolMessage [08:04:54]wFMCommunicate request_size=4 [08:04:54]MH_SAM_APDU [08:04:54]CAPDU: 80 11 00 00 [08:04:54]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:54]Read from MH i2c: E2 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: E2 17 00 [08:04:54]MH_I2C_Read... [08:04:54]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 36 37 34 90 00 95 [08:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:04:54]wFMCommunicate OK [08:04:54]CreateOFDProtocolMessage done [08:04:54]OFDSenderStorePacket 60499 [08:04:54]StoreOFDPacket docnum=60499 [08:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 F4 02 00 00 61 DF EC 02 24 07 5A 03 01 00 03 00 E0 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 21 00 00 00 00 07 04 06 00 24 3F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 24 F4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 53 EC 00 00 35 04 06 00 B6 66 2B 59 07 8E ED 48 1D 6D DC FF 09 F9 [08:04:54]CheckFolder [08:04:54]dirname=/storage/ofd_packets [08:04:54]CheckFolder done [08:04:54]ProducePacketName [08:04:54]name=ofd_packets/00060499 [08:04:54]NVStorageSaveData ofd_packets/00060499 [08:04:54]File name is /storage/ofd_packets/00060499 [08:04:54]Write 786 bytes [08:04:54]NVStorageSaveData done [08:04:54]OFDSenderStorePacket done [08:04:54]KKMCreateOFDPacket done [08:04:54]NVStorageSaveData kkm_last_timestamp [08:04:54]File name is /storage/kkm_last_timestamp [08:04:54]Write 4 bytes [08:04:54]NVStorageSaveData done [08:04:54]ExternCall_PrintAddStr [08:04:54]wPrintStart [08:04:54]Write to MH i2c: 01 00 00 C5 00 C5 [08:04:54]Write i2c OK [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: 01 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: 01 07 00 [08:04:54]MH_I2C_Read... [08:04:54]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [08:04:54]RasterBufferAndPrint [08:04:54]line Счет N : (3)200142 [08:04:54]line ИНН: 02508201610067 [08:04:54]line Контрольно-Кассовый Чек [08:04:54]line ПРОДАЖА [08:04:54]line Товар: 4700003150936 [08:04:54]line Новая Водка Organic 40% 0,48л [08:04:54]line 1.000 * 560.00 [08:04:54]line = 560.00 [08:04:54]line НДС 12% НСП 1% [08:04:54]line > о реализуемом товаре [08:04:54]line Товар: 2000031750019 [08:04:54]line Пакет Партнер Нефть [08:04:54]line 1.000 * 4.00 [08:04:54]line = 4.00 [08:04:54]line НДС 12% НСП 1% [08:04:54]line > о реализуемом товаре [08:04:54]line Товар: 5449000189332 [08:04:54]line Холодный чай Fuse персик 1л [08:04:54]line 1.000 * 120.00 [08:04:54]line = 120.00 [08:04:54]line НДС 12% НСП 1% [08:04:54]line > о реализуемом товаре [08:04:54]line Товар: 2000053020015 [08:04:54]line Бумажные стаканы 250мл 1шт [08:04:54]line 4.000 * 7.00 [08:04:54]line = 28.00 [08:04:54]line НДС 12% НСП 1% [08:04:54]line > о реализуемом товаре [08:04:54]line Товар: 2000034730018 [08:04:54]line Кофе Американо (GABB TRADE) [08:04:54]line 1.000 * 105.00 [08:04:54]line = 105.00 [08:04:54]line НДС 12% НСП 1% [08:04:54]line > о реализуемом товаре [08:04:54]line ИТОГО: 817.00 [08:04:54]line НСП 1% : 7.23 [08:04:54]line НДС 12% : 86.75 [08:04:54]line Наличными: 817.00 [08:04:54]line Безнал.: 0.00 [08:04:54]line Место: АЗС № 87 "Партнер Нефть" [08:04:54]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:04:54]line СНО: Общий режим [08:04:54]line Чек 31 27.10.2024 08:04 [08:04:54]line Смена: 532 ФФД: 1.0 [08:04:54]line ЗНМ: 0300000084 [08:04:54]line РНМ: 0000000000091622 [08:04:54]line Версия ККМ: 001 [08:04:54]line ФМ: 0000000000874674 [08:04:54]line ФД: 60499 [08:04:54]line ФПД: 200549930174350 [08:04:54]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080452&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60499&fm=200549930174350&tin=02508201610067®Number=0000000000091622&sum=81700 [08:04:54]line 0 [08:04:54]OFD Sender: Processing packet 60499 [packets to send 30, broken 29] [08:04:54]ProducePacketName [08:04:54]name=ofd_packets/00060499 [08:04:54]OFD Sender: To server: pG, [08:04:54]CommunicateWithHost lk.salyk.kg:30040 [08:04:54]ConnectInit lk.salyk.kg [08:04:54]written 0, free lines is 4095 [08:04:54]Connected sock=11 [08:04: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 36 37 34 F4 02 00 00 61 DF EC 02 24 07 5A 03 01 00 03 00 E0 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 F0 0A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 3F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 21 00 00 00 00 07 04 06 00 24 3F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 24 F4 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 53 EC 00 00 35 04 06 00 B6 66 2B 59 07 8E ED 48 1D 6D DC FF 09 F9 [08:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 B5 B7 47 00 C1 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 36 37 34 10 04 04 00 53 EC 00 00 F4 03 04 00 0D 9A 1D 67 B6 04 01 00 00 F0 9E 31 1D 0A CA A3 82 [08:04:54]CommunicateWithHost err = 0 [08:04:54]CheckOFDResponse [08:04:54]1017 (14) - 77093643461234 [08:04:54]1041 (16) - 0000000000874674 [08:04:54]1040 (4) - 60499 [08:04:54]1012 (4) - 27.10.2024 01:40 [08:04:54]1206 (1) - 0 [08:04:54]OFD Sender: Remove packet 60499 [08:04:54]ProducePacketName [08:04:54]name=ofd_packets/00060499 [08:04:54]NVStorageDeleteData [08:04:55]Write to MH i2c: 01 00 00 08 01 09 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: 01 07 00 08 01 00 00 00 00 00 3C 0B 57 [08:04:55]RasterBufferAndPrint [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]line [08:04:55]written 0, free lines is 2883 [08:04:55]MH_Cut [08:04:55]Write to MH i2c: D1 01 00 0F 01 01 E2 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 01 00 [08:04:55]MH_I2C_Read... [08:04:55]Read from MH i2c: D1 01 00 0F 01 00 E1 [08:04:55]Write to MH i2c: 01 00 00 10 01 11 [08:04:55]Write i2c OK [08:04:55]MH_I2C_Read... [08:04:55]OFD Sender: No OFD packet to send [08:04:55]ConnectInit Can't connect to host [08:04:56]*** Cut start [08:04:56]*** Partial cut [08:04:56]*** CUTSNS_PIN = 1 [08:04:56]*** CUTSNS_PIN = 0 [08:04:56]*** Brake cut motor [08:04:56]Read from MH i2c: 01 [08:04:56]MH_I2C_Read... [08:04:56]*** Stop cut motor [08:04:57]*** Cut end [08:04:57]Read from MH i2c: 01 07 00 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [08:04:57]process_action close_receipt done [08:04:57]requested_data is exist [08:04:57]produce_requested_data [08:04:57]requested_item fm.sn is exist - process it [08:04:57]wFMCommunicate request_size=4 [08:04:57]MH_SAM_APDU [08:04:57]CAPDU: 80 11 00 00 [08:04:57]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [08:04:57]Write i2c OK [08:04:57]MH_I2C_Read... [08:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:57]Read from MH i2c: E2 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 17 00 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E3 [08:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:04:57]wFMCommunicate OK [08:04:57]requested_item fd.num is exist - process it [08:04:57]SAM_PROTO_GetFieldsCounters [08:04:57]wFMCommunicate request_size=4 [08:04:57]MH_SAM_APDU [08:04:57]CAPDU: 80 13 00 00 [08:04:57]Write to MH i2c: E2 08 00 12 01 80 13 00 00 00 00 00 00 8F [08:04:57]Write i2c OK [08:04:57]MH_I2C_Read... [08:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:57]Read from MH i2c: E2 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 62 00 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 62 00 12 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 53 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [08:04: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 53 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:57]wFMCommunicate OK [08:04:57]SAM_PROTO_GetFieldsCounters done [08:04:57]requested_item shift.num is exist - process it [08:04:57]requested_item shift.opened is exist - process it [08:04:57]req_shift_opened [08:04:57]FM_GetShiftState [08:04:57]SAM_PROTO_GetShiftState [08:04:57]wFMCommunicate request_size=4 [08:04:57]MH_SAM_APDU [08:04:57]CAPDU: 80 13 01 00 [08:04:57]Write to MH i2c: E2 08 00 13 01 80 13 01 00 00 00 00 00 91 [08:04:57]Write i2c OK [08:04:57]MH_I2C_Read... [08:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:57]Read from MH i2c: E2 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 0E 00 [08:04:57]MH_I2C_Read... [08:04:57]Read from MH i2c: E2 0E 00 13 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 2D [08:04:57]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:04:57]wFMCommunicate OK [08:04:57]SAM_PROTO_GetShiftState done [08:04:57]FM_GetShiftState done [08:04:57]req_shift_opened done [08:04:57]requested_item shift.open_date is exist - process it [08:04:57]req_shift_open_date [08:04:57]req_shift_open_date done [08:04:57]produce_requested_data done [08:04:57]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60499,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:04:57]process_action_free close_receipt [08:04:57]json_value_free [08:04:57]json_value_free done [08:04:57]process_json_proto returns [08:04:57]Send response to host [08:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60499,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:04:57]free response buf [08:04:57]execute_script done [08:04:57]execute_script returns [08:04:57]free content buf [08:04:57]Sock 9.Close socket [08:04:57]Sock 9.Thread stoped [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:19]ConnectInit Can't connect to host [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:20]OFD Sender: No OFD packet to send [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]accept exits with 10 [08:09:55]New connection [08:09:55]New thread 3067219300 created [08:09:55]Thread 3067362660 joined [08:09:55]Waiting for new connection... [08:09:55] Sock 10.Parse request [08:09:55]Sock 10.Check first char [08:09:55]Sock 10.First char is OK [08:09:55]request: POST /json_proto HTTP/1.0 [08:09:55]Method: POST [08:09:55]URL: /json_proto [08:09:55]Method is POST - this is cgi request [08:09:55]url: /json_proto [08:09:55]query_string will be loaded in cgi processing [08:09:55]execute_cgi json_proto POST (null) [08:09:55]execute_cgi path=json_proto method=POST [08:09:55]POST find Content-Length [08:09:55]Host: 172.17.42.196:8080 [08:09:55]Content-Length: 647 [08:09:55]Content-Type: application/json [08:09:55] [08:09:55]POST finish read [08:09:55]Found Content-Length = 647 [08:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200143", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:55]execute_script... [08:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200143", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:55]POST & json_proto [08:09:55]process_json_proto [08:09:55]json parsed OK: [08:09:55]protocol is kg_v1.0 [08:09:55]action value=close_receipt [08:09:55]process_action close_receipt [08:09:55]cmd_close_receipt [08:09:55]MH_GetDate [08:09:55]Write to MH i2c: F0 00 00 14 01 04 [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 09 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: F0 09 00 14 01 00 53 F5 1D 67 FF C4 6B 64 6B [08:09:55]GetLastDocTimeStamp 1730016292 [08:09:55]current date 1730016595 [08:09:55]FM_GetShiftState [08:09:55]SAM_PROTO_GetShiftState [08:09:55]wFMCommunicate request_size=4 [08:09:55]MH_SAM_APDU [08:09:55]CAPDU: 80 13 01 00 [08:09:55]Write to MH i2c: E2 08 00 15 01 80 13 01 00 00 00 00 00 93 [08:09:55]Write i2c OK [08:09:55]MH_I2C_Read... [08:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:55]Read from MH i2c: E2 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 [08:09:55]MH_I2C_Read... [08:09:55]Read from MH i2c: E2 0E 00 15 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 2F [08:09:55]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:09:55]wFMCommunicate OK [08:09:55]SAM_PROTO_GetShiftState done [08:09:55]FM_GetShiftState done [08:09:55]opened in 1729989505 [08:09:55]opened+sec_in_day 1730075905 [08:09:55]quantity*price = 13000 [08:09:55]sum+1 = 13001 [08:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 32 27.10.2024 08:09 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60500 ФПД: 106321950276365 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080955&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60500&fm=106321950276365&tin=02508201610067®Number=0000000000091622&sum=13000 0 [08:09:56]StoreToDocumentArchive [08:09:56]shift 532 fd 60500 [08:09:56]save to /storage/0532/doc_00060500 [08:09:56]save last doc name /storage/0532/doc_00060500 to /storage/kkm_last_doc_name [08:09:56]save OK [08:09:56]Clear old archive folders... [08:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:09:56]tlvbuf is 0020B200 [08:09:56]SAM_PROTO_ClearQueue [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 09 00 00 [08:09:56]Write to MH i2c: E2 08 00 22 01 80 09 00 00 00 00 00 00 95 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]SAM_PROTO_ClearQueue done [08:09:56]KKMCreateOFDPacket [08:09:56]OFDProtocolAddRootSTLVToBuf [08:09:56]FM_MakeSignedData [08:09:56]FM_MakeSignedData [08:09:56]SAM_PROTO_SignData [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 01 02 [08:09:56]Write to MH i2c: E2 08 00 23 01 80 0D 01 02 00 00 00 00 9D [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 23 01 00 90 00 98 [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=255 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 53 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [08:09:56]Write to MH i2c: E2 02 01 24 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 53 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 38 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 24 01 00 90 00 99 [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=31 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 34 10 04 04 00 54 EC 00 00 35 04 06 00 60 B3 02 13 FB 0D [08:09:56]Write to MH i2c: E2 22 00 25 01 80 0D 02 02 1A 00 30 30 38 37 34 36 37 34 10 04 04 00 54 EC 00 00 35 04 06 00 60 B3 02 13 FB 0D 00 00 3F [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 03 00 25 01 00 90 00 9A [08:09:56]RAPDU: 90 00 [08:09:56]wFMCommunicate OK [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 0D 03 02 [08:09:56]Write to MH i2c: E2 08 00 26 01 80 0D 03 02 00 00 00 00 A2 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 0B 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 0B 00 26 01 00 70 77 9A 5D 80 F7 D8 11 90 00 E1 [08:09:56]RAPDU: 70 77 9A 5D 80 F7 D8 11 90 00 [08:09:56]wFMCommunicate OK [08:09:56]SAM_PROTO_SignData done [08:09:56]FM_MakeSignedData done [08:09:56]CreateOFDProtocolMessage [08:09:56]wFMCommunicate request_size=4 [08:09:56]MH_SAM_APDU [08:09:56]CAPDU: 80 11 00 00 [08:09:56]Write to MH i2c: E2 08 00 27 01 80 11 00 00 00 00 00 00 A2 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:56]Read from MH i2c: E2 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 17 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: E2 17 00 27 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F9 [08:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:09:56]wFMCommunicate OK [08:09:56]CreateOFDProtocolMessage done [08:09:56]OFDSenderStorePacket 60500 [08:09:56]StoreOFDPacket docnum=60500 [08:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 24 01 00 00 C3 D9 1C 01 24 15 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 53 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 54 EC 00 00 35 04 06 00 60 B3 02 13 FB 0D 70 77 9A 5D 80 F7 D8 11 [08:09:56]CheckFolder [08:09:56]dirname=/storage/ofd_packets [08:09:56]CheckFolder done [08:09:56]ProducePacketName [08:09:56]name=ofd_packets/00060500 [08:09:56]NVStorageSaveData ofd_packets/00060500 [08:09:56]File name is /storage/ofd_packets/00060500 [08:09:56]Write 322 bytes [08:09:56]NVStorageSaveData done [08:09:56]OFDSenderStorePacket done [08:09:56]KKMCreateOFDPacket done [08:09:56]NVStorageSaveData kkm_last_timestamp [08:09:56]File name is /storage/kkm_last_timestamp [08:09:56]Write 4 bytes [08:09:56]NVStorageSaveData done [08:09:56]ExternCall_PrintAddStr [08:09:56]wPrintStart [08:09:56]Write to MH i2c: 01 00 00 28 01 29 [08:09:56]Write i2c OK [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: 01 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: 01 07 00 [08:09:56]MH_I2C_Read... [08:09:56]Read from MH i2c: 01 07 00 28 01 00 00 00 00 00 FF 0F 3E [08:09:56]RasterBufferAndPrint [08:09:56]line Счет N : (3)200143 [08:09:56]line ИНН: 02508201610067 [08:09:56]line Контрольно-Кассовый Чек [08:09:56]line ПРОДАЖА [08:09:56]line Товар: 47011656 [08:09:56]line Водка Пшеничная 0,1л [08:09:56]line 2.000 * 65.00 [08:09:56]line = 130.00 [08:09:56]line НДС 12% НСП 1% [08:09:56]line > о реализуемом товаре [08:09:56]line ИТОГО: 130.00 [08:09:56]line НСП 1% : 1.15 [08:09:56]line НДС 12% : 13.80 [08:09:56]line Наличными: 130.00 [08:09:56]line Безнал.: 0.00 [08:09:56]line Место: АЗС № 87 "Партнер Нефть" [08:09:56]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:09:56]line СНО: Общий режим [08:09:56]line Чек 32 27.10.2024 08:09 [08:09:56]line Смена: 532 ФФД: 1.0 [08:09:56]line ЗНМ: 0300000084 [08:09:56]line РНМ: 0000000000091622 [08:09:56]line Версия ККМ: 001 [08:09:56]line ФМ: 0000000000874674 [08:09:56]line ФД: 60500 [08:09:56]line ФПД: 106321950276365 [08:09:56]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T080955&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60500&fm=106321950276365&tin=02508201610067®Number=0000000000091622&sum=13000 [08:09:57]OFD Sender: Processing packet 60500 [packets to send 30, broken 29] [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00060500 [08:09:57]OFD Sender: To server: pG, [08:09:57]CommunicateWithHost lk.salyk.kg:30040 [08:09:57]ConnectInit lk.salyk.kg [08:09:57]line 0 [08:09:57]written 0, free lines is 4095 [08:09:57]Connected sock=9 [08:09: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 36 37 34 24 01 00 00 C3 D9 1C 01 24 15 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 53 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 54 EC 00 00 35 04 06 00 60 B3 02 13 FB 0D 70 77 9A 5D 80 F7 D8 11 [08:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E1 75 47 00 FC 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 54 EC 00 00 F4 03 04 00 3B 9B 1D 67 B6 04 01 00 00 9C 11 60 5A 0C 42 C3 A4 [08:09:57]CommunicateWithHost err = 0 [08:09:57]CheckOFDResponse [08:09:57]1017 (14) - 77093643461234 [08:09:57]1041 (16) - 0000000000874674 [08:09:57]1040 (4) - 60500 [08:09:57]1012 (4) - 27.10.2024 01:45 [08:09:57]1206 (1) - 0 [08:09:57]OFD Sender: Remove packet 60500 [08:09:57]ProducePacketName [08:09:57]name=ofd_packets/00060500 [08:09:57]NVStorageDeleteData [08:09:57]Write to MH i2c: 01 00 00 50 01 51 [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: 01 07 00 50 01 00 00 00 00 00 ED 0C 51 [08:09:57]RasterBufferAndPrint [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]line [08:09:57]written 0, free lines is 3315 [08:09:57]MH_Cut [08:09:57]Write to MH i2c: D1 01 00 57 01 01 2A [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 01 00 [08:09:57]MH_I2C_Read... [08:09:57]Read from MH i2c: D1 01 00 57 01 00 29 [08:09:57]Write to MH i2c: 01 00 00 58 01 59 [08:09:57]Write i2c OK [08:09:57]MH_I2C_Read... [08:09:58]OFD Sender: No OFD packet to send [08:09:58]*** Cut start [08:09:58]*** Partial cut [08:09:58]*** CUTSNS_PIN = 1 [08:09:58]*** CUTSNS_PIN = 0 [08:09:58]*** Brake cut motor [08:09:59]Read from MH i2c: 01 [08:09:59]MH_I2C_Read... [08:09:59]*** Stop cut motor [08:09:59]*** Cut end [08:09:59]Read from MH i2c: 01 07 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [08:09:59]process_action close_receipt done [08:09:59]requested_data is exist [08:09:59]produce_requested_data [08:09:59]requested_item fm.sn is exist - process it [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 11 00 00 [08:09:59]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2B [08:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:09:59]wFMCommunicate OK [08:09:59]requested_item fd.num is exist - process it [08:09:59]SAM_PROTO_GetFieldsCounters [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 13 00 00 [08:09:59]Write to MH i2c: E2 08 00 5A 01 80 13 00 00 00 00 00 00 D7 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 62 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 62 00 5A 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 54 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [08:09: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 54 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_GetFieldsCounters done [08:09:59]requested_item shift.num is exist - process it [08:09:59]requested_item shift.opened is exist - process it [08:09:59]req_shift_opened [08:09:59]FM_GetShiftState [08:09:59]SAM_PROTO_GetShiftState [08:09:59]wFMCommunicate request_size=4 [08:09:59]MH_SAM_APDU [08:09:59]CAPDU: 80 13 01 00 [08:09:59]Write to MH i2c: E2 08 00 5B 01 80 13 01 00 00 00 00 00 D9 [08:09:59]Write i2c OK [08:09:59]MH_I2C_Read... [08:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:59]Read from MH i2c: E2 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0E 00 [08:09:59]MH_I2C_Read... [08:09:59]Read from MH i2c: E2 0E 00 5B 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 75 [08:09:59]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:09:59]wFMCommunicate OK [08:09:59]SAM_PROTO_GetShiftState done [08:09:59]FM_GetShiftState done [08:09:59]req_shift_opened done [08:09:59]requested_item shift.open_date is exist - process it [08:09:59]req_shift_open_date [08:09:59]req_shift_open_date done [08:09:59]produce_requested_data done [08:09:59]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60500,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:09:59]process_action_free close_receipt [08:09:59]json_value_free [08:09:59]json_value_free done [08:09:59]process_json_proto returns [08:09:59]Send response to host [08:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60500,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:09:59]free response buf [08:09:59]execute_script done [08:09:59]execute_script returns [08:09:59]free content buf [08:09:59]Sock 10.Close socket [08:09:59]Sock 10.Thread stoped [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:49]accept exits with 7 [08:10:49]New connection [08:10:49]New thread 3067362660 created [08:10:49]Thread 3067219300 joined [08:10:49]Waiting for new connection... [08:10:49] Sock 7.Parse request [08:10:49]Sock 7.Check first char [08:10:49]Sock 7.First char is OK [08:10:49]request: POST /json_proto HTTP/1.0 [08:10:49]Method: POST [08:10:49]URL: /json_proto [08:10:49]Method is POST - this is cgi request [08:10:49]url: /json_proto [08:10:49]query_string will be loaded in cgi processing [08:10:49]execute_cgi json_proto POST (null) [08:10:49]execute_cgi path=json_proto method=POST [08:10:49]POST find Content-Length [08:10:49]Host: 172.17.42.196:8080 [08:10:49]Content-Length: 645 [08:10:49]Content-Type: application/json [08:10:49] [08:10:49]POST finish read [08:10:49]Found Content-Length = 645 [08:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200144", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:49]execute_script... [08:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200144", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:49]POST & json_proto [08:10:49]process_json_proto [08:10:49]json parsed OK: [08:10:49]protocol is kg_v1.0 [08:10:49]action value=close_receipt [08:10:49]process_action close_receipt [08:10:49]cmd_close_receipt [08:10:49]MH_GetDate [08:10:49]Write to MH i2c: F0 00 00 5C 01 4C [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: F0 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: F0 09 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: F0 09 00 5C 01 00 89 F5 1D 67 FF C4 6B 64 E9 [08:10:49]GetLastDocTimeStamp 1730016595 [08:10:49]current date 1730016649 [08:10:49]FM_GetShiftState [08:10:49]SAM_PROTO_GetShiftState [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 13 01 00 [08:10:49]Write to MH i2c: E2 08 00 5D 01 80 13 01 00 00 00 00 00 DB [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 5D 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 77 [08:10:49]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_GetShiftState done [08:10:49]FM_GetShiftState done [08:10:49]opened in 1729989505 [08:10:49]opened+sec_in_day 1730075905 [08:10:49]quantity*price = 7900 [08:10:49]sum+1 = 7901 [08:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 33 27.10.2024 08:10 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60501 ФПД: 123542840954173 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081049&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60501&fm=123542840954173&tin=02508201610067®Number=0000000000091622&sum=7900 0 [08:10:50]StoreToDocumentArchive [08:10:50]shift 532 fd 60501 [08:10:50]save to /storage/0532/doc_00060501 [08:10:50]save last doc name /storage/0532/doc_00060501 to /storage/kkm_last_doc_name [08:10:50]save OK [08:10:50]Clear old archive folders... [08:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:10:50]tlvbuf is 0020D790 [08:10:50]SAM_PROTO_ClearQueue [08:10:50]wFMCommunicate request_size=4 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 09 00 00 [08:10:50]Write to MH i2c: E2 08 00 6A 01 80 09 00 00 00 00 00 00 DD [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [08:10:50]RAPDU: 90 00 [08:10:50]wFMCommunicate OK [08:10:50]SAM_PROTO_ClearQueue done [08:10:50]KKMCreateOFDPacket [08:10:50]OFDProtocolAddRootSTLVToBuf [08:10:50]FM_MakeSignedData [08:10:50]FM_MakeSignedData [08:10:50]SAM_PROTO_SignData [08:10:50]wFMCommunicate request_size=4 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 0D 01 02 [08:10:50]Write to MH i2c: E2 08 00 6B 01 80 0D 01 02 00 00 00 00 E5 [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [08:10:50]RAPDU: 90 00 [08:10:50]wFMCommunicate OK [08:10:50]wFMCommunicate request_size=255 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 89 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 [08:10:50]Write to MH i2c: E2 02 01 6C 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 89 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 00 00 FC [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 6C 01 00 90 00 E1 [08:10:50]RAPDU: 90 00 [08:10:50]wFMCommunicate OK [08:10:50]wFMCommunicate request_size=35 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 55 EC 00 00 35 04 06 00 70 5C 8F 26 4D 3D [08:10:50]Write to MH i2c: E2 26 00 6D 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 55 EC 00 00 35 04 06 00 70 5C 8F 26 4D 3D 00 00 2B [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 03 00 6D 01 00 90 00 E2 [08:10:50]RAPDU: 90 00 [08:10:50]wFMCommunicate OK [08:10:50]wFMCommunicate request_size=4 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 0D 03 02 [08:10:50]Write to MH i2c: E2 08 00 6E 01 80 0D 03 02 00 00 00 00 EA [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 0B 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 0B 00 6E 01 00 59 7E AF 4F 64 A5 5C 5B 90 00 80 [08:10:50]RAPDU: 59 7E AF 4F 64 A5 5C 5B 90 00 [08:10:50]wFMCommunicate OK [08:10:50]SAM_PROTO_SignData done [08:10:50]FM_MakeSignedData done [08:10:50]CreateOFDProtocolMessage [08:10:50]wFMCommunicate request_size=4 [08:10:50]MH_SAM_APDU [08:10:50]CAPDU: 80 11 00 00 [08:10:50]Write to MH i2c: E2 08 00 6F 01 80 11 00 00 00 00 00 00 EA [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:50]Read from MH i2c: E2 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 17 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: E2 17 00 6F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 41 [08:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:10:50]wFMCommunicate OK [08:10:50]CreateOFDProtocolMessage done [08:10:50]OFDSenderStorePacket 60501 [08:10:50]StoreOFDPacket docnum=60501 [08:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 28 01 00 00 5E 71 20 01 14 B6 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 89 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 55 EC 00 00 35 04 06 00 70 5C 8F 26 4D 3D 59 7E AF 4F 64 A5 5C 5B [08:10:50]CheckFolder [08:10:50]dirname=/storage/ofd_packets [08:10:50]CheckFolder done [08:10:50]ProducePacketName [08:10:50]name=ofd_packets/00060501 [08:10:50]NVStorageSaveData ofd_packets/00060501 [08:10:50]File name is /storage/ofd_packets/00060501 [08:10:50]Write 326 bytes [08:10:50]NVStorageSaveData done [08:10:50]OFDSenderStorePacket done [08:10:50]KKMCreateOFDPacket done [08:10:50]NVStorageSaveData kkm_last_timestamp [08:10:50]File name is /storage/kkm_last_timestamp [08:10:50]Write 4 bytes [08:10:50]NVStorageSaveData done [08:10:50]ExternCall_PrintAddStr [08:10:50]wPrintStart [08:10:50]Write to MH i2c: 01 00 00 70 01 71 [08:10:50]Write i2c OK [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: 01 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: 01 07 00 [08:10:50]MH_I2C_Read... [08:10:50]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 FF 0F 86 [08:10:50]RasterBufferAndPrint [08:10:50]line Счет N : (3)200144 [08:10:50]line ИНН: 02508201610067 [08:10:50]line Контрольно-Кассовый Чек [08:10:50]line ПРОДАЖА [08:10:50]line Товар: 4700000310043 [08:10:50]line Вода Жалалабат 27 1л [08:10:50]line 1.000 * 79.00 [08:10:50]line = 79.00 [08:10:50]line НДС 12% НСП 1% [08:10:50]line > о реализуемом товаре [08:10:50]line ИТОГО: 79.00 [08:10:50]line НСП 1% : 0.70 [08:10:50]line НДС 12% : 8.39 [08:10:50]line Наличными: 79.00 [08:10:50]line Безнал.: 0.00 [08:10:50]line Место: АЗС № 87 "Партнер Нефть" [08:10:50]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:10:50]line СНО: Общий режим [08:10:50]line Чек 33 27.10.2024 08:10 [08:10:50]line Смена: 532 ФФД: 1.0 [08:10:50]line ЗНМ: 0300000084 [08:10:50]line РНМ: 0000000000091622 [08:10:50]line Версия ККМ: 001 [08:10:50]line ФМ: 0000000000874674 [08:10:50]line ФД: 60501 [08:10:50]line ФПД: 123542840954173 [08:10:50]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T081049&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60501&fm=123542840954173&tin=02508201610067®Number=0000000000091622&sum=7900 [08:10:51]OFD Sender: Processing packet 60501 [packets to send 30, broken 29] [08:10:51]ProducePacketName [08:10:51]name=ofd_packets/00060501 [08:10:51]OFD Sender: To server: pG, [08:10:51]CommunicateWithHost lk.salyk.kg:30040 [08:10:51]ConnectInit lk.salyk.kg [08:10:51]line 0 [08:10:51]written 0, free lines is 4095 [08:10:51]Connected sock=10 [08:10: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 36 37 34 28 01 00 00 5E 71 20 01 14 B6 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 89 F5 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 55 EC 00 00 35 04 06 00 70 5C 8F 26 4D 3D 59 7E AF 4F 64 A5 5C 5B [08:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 AB 95 47 00 C9 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 36 37 34 10 04 04 00 55 EC 00 00 F4 03 04 00 71 9B 1D 67 B6 04 01 00 00 C0 EF 35 DA C7 54 FE 08 [08:10:51]CommunicateWithHost err = 0 [08:10:51]CheckOFDResponse [08:10:51]1017 (14) - 77093643461234 [08:10:51]1041 (16) - 0000000000874674 [08:10:51]1040 (4) - 60501 [08:10:51]1012 (4) - 27.10.2024 01:46 [08:10:51]1206 (1) - 0 [08:10:51]OFD Sender: Remove packet 60501 [08:10:51]ProducePacketName [08:10:51]name=ofd_packets/00060501 [08:10:51]NVStorageDeleteData [08:10:51]Write to MH i2c: 01 00 00 98 01 99 [08:10:51]Write i2c OK [08:10:51]MH_I2C_Read... [08:10:51]Read from MH i2c: 01 [08:10:51]MH_I2C_Read... [08:10:51]Read from MH i2c: 01 07 00 [08:10:51]MH_I2C_Read... [08:10:51]Read from MH i2c: 01 07 00 98 01 00 00 00 00 00 F0 0C 9C [08:10:51]RasterBufferAndPrint [08:10:51]line [08:10:51]line [08:10:51]line [08:10:51]line [08:10:51]line [08:10:51]written 0, free lines is 3318 [08:10:51]MH_Cut [08:10:51]Write to MH i2c: D1 01 00 9F 01 01 72 [08:10:51]Write i2c OK [08:10:51]MH_I2C_Read... [08:10:51]Read from MH i2c: D1 [08:10:51]MH_I2C_Read... [08:10:51]Read from MH i2c: D1 01 00 [08:10:51]MH_I2C_Read... [08:10:51]Read from MH i2c: D1 01 00 9F 01 00 71 [08:10:51]Write to MH i2c: 01 00 00 A0 01 A1 [08:10:51]Write i2c OK [08:10:51]MH_I2C_Read... [08:10:52]OFD Sender: No OFD packet to send [08:10:52]*** Cut start [08:10:52]*** Partial cut [08:10:52]*** CUTSNS_PIN = 1 [08:10:52]*** CUTSNS_PIN = 0 [08:10:52]*** Brake cut motor [08:10:53]Read from MH i2c: 01 [08:10:53]MH_I2C_Read... [08:10:53]*** Stop cut motor [08:10:53]*** Cut end [08:10:53]Read from MH i2c: 01 07 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: 01 07 00 A0 01 00 00 00 00 00 FF 0F B6 [08:10:53]process_action close_receipt done [08:10:53]requested_data is exist [08:10:53]produce_requested_data [08:10:53]requested_item fm.sn is exist - process it [08:10:53]wFMCommunicate request_size=4 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 11 00 00 [08:10:53]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 17 00 [08:10:53]MH_I2C_Read... [08:10:53]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 36 37 34 90 00 73 [08:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:10:53]wFMCommunicate OK [08:10:53]requested_item fd.num is exist - process it [08:10:53]SAM_PROTO_GetFieldsCounters [08:10:53]wFMCommunicate request_size=4 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 13 00 00 [08:10:53]Write to MH i2c: E2 08 00 A2 01 80 13 00 00 00 00 00 00 1F [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 62 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 62 00 A2 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 55 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [08:10: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 55 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:53]wFMCommunicate OK [08:10:53]SAM_PROTO_GetFieldsCounters done [08:10:53]requested_item shift.num is exist - process it [08:10:53]requested_item shift.opened is exist - process it [08:10:53]req_shift_opened [08:10:53]FM_GetShiftState [08:10:53]SAM_PROTO_GetShiftState [08:10:53]wFMCommunicate request_size=4 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 13 01 00 [08:10:53]Write to MH i2c: E2 08 00 A3 01 80 13 01 00 00 00 00 00 21 [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 0E 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 0E 00 A3 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 BD [08:10:53]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:10:53]wFMCommunicate OK [08:10:53]SAM_PROTO_GetShiftState done [08:10:53]FM_GetShiftState done [08:10:53]req_shift_opened done [08:10:53]requested_item shift.open_date is exist - process it [08:10:53]req_shift_open_date [08:10:53]req_shift_open_date done [08:10:53]produce_requested_data done [08:10:53]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60501,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:10:53]process_action_free close_receipt [08:10:53]json_value_free [08:10:53]json_value_free done [08:10:53]process_json_proto returns [08:10:53]Send response to host [08:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60501,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:10:53]free response buf [08:10:53]execute_script done [08:10:53]execute_script returns [08:10:53]free content buf [08:10:53]Sock 7.Close socket [08:10:53]Sock 7.Thread stoped [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:44]accept exits with 9 [08:26:44]New connection [08:26:44]New thread 3067219300 created [08:26:44]Thread 3067362660 joined [08:26:44]Waiting for new connection... [08:26:44] Sock 9.Parse request [08:26:44]Sock 9.Check first char [08:26:44]Sock 9.First char is OK [08:26:44]request: POST /json_proto HTTP/1.0 [08:26:44]Method: POST [08:26:44]URL: /json_proto [08:26:44]Method is POST - this is cgi request [08:26:44]url: /json_proto [08:26:44]query_string will be loaded in cgi processing [08:26:44]execute_cgi json_proto POST (null) [08:26:44]execute_cgi path=json_proto method=POST [08:26:44]POST find Content-Length [08:26:44]Host: 172.17.42.196:8080 [08:26:44]Content-Length: 645 [08:26:44]Content-Type: application/json [08:26:44] [08:26:44]POST finish read [08:26:44]Found Content-Length = 645 [08:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200145", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:44]execute_script... [08:26: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 : (3)200145", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:44]POST & json_proto [08:26:44]process_json_proto [08:26:44]json parsed OK: [08:26:44]protocol is kg_v1.0 [08:26:44]action value=close_receipt [08:26:44]process_action close_receipt [08:26:44]cmd_close_receipt [08:26:44]MH_GetDate [08:26:44]Write to MH i2c: F0 00 00 A4 01 94 [08:26:44]Write i2c OK [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 09 00 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 09 00 A4 01 00 44 F9 1D 67 FF C4 6B 64 F0 [08:26:44]GetLastDocTimeStamp 1730016649 [08:26:44]current date 1730017604 [08:26:44]FM_GetShiftState [08:26:44]SAM_PROTO_GetShiftState [08:26:44]wFMCommunicate request_size=4 [08:26:44]MH_SAM_APDU [08:26:44]CAPDU: 80 13 01 00 [08:26:44]Write to MH i2c: E2 08 00 A5 01 80 13 01 00 00 00 00 00 23 [08:26:44]Write i2c OK [08:26:44]MH_I2C_Read... [08:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:44]Read from MH i2c: E2 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 A5 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 BF [08:26:44]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:26:44]wFMCommunicate OK [08:26:44]SAM_PROTO_GetShiftState done [08:26:44]FM_GetShiftState done [08:26:44]opened in 1729989505 [08:26:44]opened+sec_in_day 1730075905 [08:26:44]quantity*price = 6500 [08:26:44]sum+1 = 6501 [08:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 34 27.10.2024 08:26 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60502 ФПД: 280842244965804 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082644&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60502&fm=280842244965804&tin=02508201610067®Number=0000000000091622&sum=6500 0 [08:26:45]StoreToDocumentArchive [08:26:45]shift 532 fd 60502 [08:26:45]save to /storage/0532/doc_00060502 [08:26:45]save last doc name /storage/0532/doc_00060502 to /storage/kkm_last_doc_name [08:26:45]save OK [08:26:45]Clear old archive folders... [08:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:26:45]tlvbuf is 0021FA50 [08:26:45]SAM_PROTO_ClearQueue [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 09 00 00 [08:26:45]Write to MH i2c: E2 08 00 B2 01 80 09 00 00 00 00 00 00 25 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 B2 01 00 90 00 27 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]SAM_PROTO_ClearQueue done [08:26:45]KKMCreateOFDPacket [08:26:45]OFDProtocolAddRootSTLVToBuf [08:26:45]FM_MakeSignedData [08:26:45]FM_MakeSignedData [08:26:45]SAM_PROTO_SignData [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 01 02 [08:26:45]Write to MH i2c: E2 08 00 B3 01 80 0D 01 02 00 00 00 00 2D [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=255 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 44 F9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [08:26:45]Write to MH i2c: E2 02 01 B4 01 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 44 F9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 6D [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=31 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 34 10 04 04 00 56 EC 00 00 35 04 06 00 FF 6C AE 3F C5 AC [08:26:45]Write to MH i2c: E2 22 00 B5 01 80 0D 02 02 1A 00 30 30 38 37 34 36 37 34 10 04 04 00 56 EC 00 00 35 04 06 00 FF 6C AE 3F C5 AC 00 00 6A [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 03 02 [08:26:45]Write to MH i2c: E2 08 00 B6 01 80 0D 03 02 00 00 00 00 32 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0B 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0B 00 B6 01 00 08 78 4B 49 25 9A 72 2F 90 00 A7 [08:26:45]RAPDU: 08 78 4B 49 25 9A 72 2F 90 00 [08:26:45]wFMCommunicate OK [08:26:45]SAM_PROTO_SignData done [08:26:45]FM_MakeSignedData done [08:26:45]CreateOFDProtocolMessage [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 11 00 00 [08:26:45]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 17 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 89 [08:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:26:45]wFMCommunicate OK [08:26:45]CreateOFDProtocolMessage done [08:26:45]OFDSenderStorePacket 60502 [08:26:45]StoreOFDPacket docnum=60502 [08:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 24 01 00 00 77 F1 1C 01 AE 67 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 44 F9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 56 EC 00 00 35 04 06 00 FF 6C AE 3F C5 AC 08 78 4B 49 25 9A 72 2F [08:26:45]CheckFolder [08:26:45]dirname=/storage/ofd_packets [08:26:45]CheckFolder done [08:26:45]ProducePacketName [08:26:45]name=ofd_packets/00060502 [08:26:45]NVStorageSaveData ofd_packets/00060502 [08:26:45]File name is /storage/ofd_packets/00060502 [08:26:45]Write 322 bytes [08:26:45]NVStorageSaveData done [08:26:45]OFDSenderStorePacket done [08:26:45]KKMCreateOFDPacket done [08:26:45]NVStorageSaveData kkm_last_timestamp [08:26:45]File name is /storage/kkm_last_timestamp [08:26:45]Write 4 bytes [08:26:45]NVStorageSaveData done [08:26:45]ExternCall_PrintAddStr [08:26:45]wPrintStart [08:26:45]Write to MH i2c: 01 00 00 B8 01 B9 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 07 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 FF 0F CE [08:26:45]RasterBufferAndPrint [08:26:45]line Счет N : (3)200145 [08:26:45]line ИНН: 02508201610067 [08:26:45]line Контрольно-Кассовый Чек [08:26:45]line ПРОДАЖА [08:26:45]line Товар: 47011656 [08:26:45]line Водка Пшеничная 0,1л [08:26:45]line 1.000 * 65.00 [08:26:45]line = 65.00 [08:26:45]line НДС 12% НСП 1% [08:26:45]line > о реализуемом товаре [08:26:45]line ИТОГО: 65.00 [08:26:45]line НСП 1% : 0.57 [08:26:45]line НДС 12% : 6.90 [08:26:45]line Наличными: 65.00 [08:26:45]line Безнал.: 0.00 [08:26:45]line Место: АЗС № 87 "Партнер Нефть" [08:26:45]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:26:45]line СНО: Общий режим [08:26:45]line Чек 34 27.10.2024 08:26 [08:26:45]line Смена: 532 ФФД: 1.0 [08:26:45]line ЗНМ: 0300000084 [08:26:45]line РНМ: 0000000000091622 [08:26:45]line Версия ККМ: 001 [08:26:45]line ФМ: 0000000000874674 [08:26:45]line ФД: 60502 [08:26:45]line ФПД: 280842244965804 [08:26:45]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082644&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60502&fm=280842244965804&tin=02508201610067®Number=0000000000091622&sum=6500 [08:26:46]OFD Sender: Processing packet 60502 [packets to send 30, broken 29] [08:26:46]ProducePacketName [08:26:46]name=ofd_packets/00060502 [08:26:46]OFD Sender: To server: pG, [08:26:46]CommunicateWithHost lk.salyk.kg:30040 [08:26:46]ConnectInit lk.salyk.kg [08:26:46]line 0 [08:26:46]written 0, free lines is 4095 [08:26:46]Connected sock=10 [08:26: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 36 37 34 24 01 00 00 77 F1 1C 01 AE 67 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 44 F9 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 56 EC 00 00 35 04 06 00 FF 6C AE 3F C5 AC 08 78 4B 49 25 9A 72 2F [08:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 AB B1 47 00 88 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 36 37 34 10 04 04 00 56 EC 00 00 F4 03 04 00 2C 9F 1D 67 B6 04 01 00 00 CD 27 69 92 88 E1 23 DD [08:26:46]CommunicateWithHost err = 0 [08:26:46]CheckOFDResponse [08:26:46]1017 (14) - 77093643461234 [08:26:46]1041 (16) - 0000000000874674 [08:26:46]1040 (4) - 60502 [08:26:46]1012 (4) - 27.10.2024 02:02 [08:26:46]1206 (1) - 0 [08:26:46]OFD Sender: Remove packet 60502 [08:26:46]ProducePacketName [08:26:46]name=ofd_packets/00060502 [08:26:46]NVStorageDeleteData [08:26:46]Write to MH i2c: 01 00 00 E0 01 E1 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FD 0C F1 [08:26:46]RasterBufferAndPrint [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]written 0, free lines is 3331 [08:26:46]MH_Cut [08:26:46]Write to MH i2c: D1 01 00 E7 01 01 BA [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 01 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 01 00 E7 01 00 B9 [08:26:46]Write to MH i2c: 01 00 00 E8 01 E9 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]OFD Sender: No OFD packet to send [08:26:47]*** Cut start [08:26:47]*** Partial cut [08:26:47]*** CUTSNS_PIN = 1 [08:26:47]*** CUTSNS_PIN = 0 [08:26:47]*** Brake cut motor [08:26:47]Read from MH i2c: 01 [08:26:47]MH_I2C_Read... [08:26:47]*** Stop cut motor [08:26:47]*** Cut end [08:26:47]Read from MH i2c: 01 07 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: 01 07 00 E8 01 00 00 00 00 00 FF 0F FE [08:26:47]process_action close_receipt done [08:26:47]requested_data is exist [08:26:47]produce_requested_data [08:26:47]requested_item fm.sn is exist - process it [08:26:47]wFMCommunicate request_size=4 [08:26:47]MH_SAM_APDU [08:26:47]CAPDU: 80 11 00 00 [08:26:47]Write to MH i2c: E2 08 00 E9 01 80 11 00 00 00 00 00 00 64 [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 17 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 17 00 E9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BB [08:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:26:48]wFMCommunicate OK [08:26:48]requested_item fd.num is exist - process it [08:26:48]SAM_PROTO_GetFieldsCounters [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 13 00 00 [08:26:48]Write to MH i2c: E2 08 00 EA 01 80 13 00 00 00 00 00 00 67 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 62 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 62 00 EA 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 56 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [08:26: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 56 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:48]wFMCommunicate OK [08:26:48]SAM_PROTO_GetFieldsCounters done [08:26:48]requested_item shift.num is exist - process it [08:26:48]requested_item shift.opened is exist - process it [08:26:48]req_shift_opened [08:26:48]FM_GetShiftState [08:26:48]SAM_PROTO_GetShiftState [08:26:48]wFMCommunicate request_size=4 [08:26:48]MH_SAM_APDU [08:26:48]CAPDU: 80 13 01 00 [08:26:48]Write to MH i2c: E2 08 00 EB 01 80 13 01 00 00 00 00 00 69 [08:26:48]Write i2c OK [08:26:48]MH_I2C_Read... [08:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:48]Read from MH i2c: E2 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 0E 00 [08:26:48]MH_I2C_Read... [08:26:48]Read from MH i2c: E2 0E 00 EB 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 05 [08:26:48]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:26:48]wFMCommunicate OK [08:26:48]SAM_PROTO_GetShiftState done [08:26:48]FM_GetShiftState done [08:26:48]req_shift_opened done [08:26:48]requested_item shift.open_date is exist - process it [08:26:48]req_shift_open_date [08:26:48]req_shift_open_date done [08:26:48]produce_requested_data done [08:26:48]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60502,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:26:48]process_action_free close_receipt [08:26:48]json_value_free [08:26:48]json_value_free done [08:26:48]process_json_proto returns [08:26:48]Send response to host [08:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60502,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:26:48]free response buf [08:26:48]execute_script done [08:26:48]execute_script returns [08:26:48]free content buf [08:26:48]Sock 9.Close socket [08:26:48]Sock 9.Thread stoped [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:19]accept exits with 7 [08:32:19]New connection [08:32:19]New thread 3067362660 created [08:32:19]Thread 3067219300 joined [08:32:19]Waiting for new connection... [08:32:19] Sock 7.Parse request [08:32:19]Sock 7.Check first char [08:32:19]Sock 7.First char is OK [08:32:19]request: POST /json_proto HTTP/1.0 [08:32:19]Method: POST [08:32:19]URL: /json_proto [08:32:19]Method is POST - this is cgi request [08:32:19]url: /json_proto [08:32:19]query_string will be loaded in cgi processing [08:32:19]execute_cgi json_proto POST (null) [08:32:19]execute_cgi path=json_proto method=POST [08:32:19]POST find Content-Length [08:32:19]Host: 172.17.42.196:8080 [08:32:19]Content-Length: 653 [08:32:19]Content-Type: application/json [08:32:19] [08:32:19]POST finish read [08:32:19]Found Content-Length = 653 [08:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200146", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:19]execute_script... [08:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200146", "tax_sys" : 0, "items" : [ { "code": "5449000325907", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,45\u043B \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:19]POST & json_proto [08:32:19]process_json_proto [08:32:19]json parsed OK: [08:32:19]protocol is kg_v1.0 [08:32:19]action value=close_receipt [08:32:19]process_action close_receipt [08:32:19]cmd_close_receipt [08:32:19]MH_GetDate [08:32:19]Write to MH i2c: F0 00 00 EC 01 DC [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: F0 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: F0 09 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: F0 09 00 EC 01 00 93 FA 1D 67 FF C4 6B 64 88 [08:32:19]GetLastDocTimeStamp 1730017604 [08:32:19]current date 1730017939 [08:32:19]FM_GetShiftState [08:32:19]SAM_PROTO_GetShiftState [08:32:19]wFMCommunicate request_size=4 [08:32:19]MH_SAM_APDU [08:32:19]CAPDU: 80 13 01 00 [08:32:19]Write to MH i2c: E2 08 00 ED 01 80 13 01 00 00 00 00 00 6B [08:32:19]Write i2c OK [08:32:19]MH_I2C_Read... [08:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:19]Read from MH i2c: E2 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 0E 00 [08:32:19]MH_I2C_Read... [08:32:19]Read from MH i2c: E2 0E 00 ED 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 07 [08:32:19]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:32:19]wFMCommunicate OK [08:32:19]SAM_PROTO_GetShiftState done [08:32:19]FM_GetShiftState done [08:32:19]opened in 1729989505 [08:32:19]opened+sec_in_day 1730075905 [08:32:19]quantity*price = 9000 [08:32:19]sum+1 = 9001 [08:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 35 27.10.2024 08:32 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60503 ФПД: 103827060295533 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083219&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60503&fm=103827060295533&tin=02508201610067®Number=0000000000091622&sum=9000 0 [08:32:20]StoreToDocumentArchive [08:32:20]shift 532 fd 60503 [08:32:20]save to /storage/0532/doc_00060503 [08:32:20]save last doc name /storage/0532/doc_00060503 to /storage/kkm_last_doc_name [08:32:20]save OK [08:32:20]Clear old archive folders... [08:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:32:20]tlvbuf is 0022F9E0 [08:32:20]SAM_PROTO_ClearQueue [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 09 00 00 [08:32:20]Write to MH i2c: E2 08 00 FA 01 80 09 00 00 00 00 00 00 6D [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 FA 01 00 90 00 6F [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]SAM_PROTO_ClearQueue done [08:32:20]KKMCreateOFDPacket [08:32:20]OFDProtocolAddRootSTLVToBuf [08:32:20]FM_MakeSignedData [08:32:20]FM_MakeSignedData [08:32:20]SAM_PROTO_SignData [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 0D 01 02 [08:32:20]Write to MH i2c: E2 08 00 FB 01 80 0D 01 02 00 00 00 00 75 [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 FB 01 00 90 00 70 [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]wFMCommunicate request_size=255 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 93 FA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 [08:32:20]Write to MH i2c: E2 02 01 FC 01 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 93 FA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 00 00 A6 [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 FC 01 00 90 00 71 [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]wFMCommunicate request_size=39 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 57 EC 00 00 35 04 06 00 5E 6E 1F 0C 07 6D [08:32:20]Write to MH i2c: E2 2A 00 FD 01 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 57 EC 00 00 35 04 06 00 5E 6E 1F 0C 07 6D 00 00 E5 [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 03 00 FD 01 00 90 00 72 [08:32:20]RAPDU: 90 00 [08:32:20]wFMCommunicate OK [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 0D 03 02 [08:32:20]Write to MH i2c: E2 08 00 FE 01 80 0D 03 02 00 00 00 00 7A [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0B 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 0B 00 FE 01 00 B8 D9 FE A9 35 68 07 51 90 00 A8 [08:32:20]RAPDU: B8 D9 FE A9 35 68 07 51 90 00 [08:32:20]wFMCommunicate OK [08:32:20]SAM_PROTO_SignData done [08:32:20]FM_MakeSignedData done [08:32:20]CreateOFDProtocolMessage [08:32:20]wFMCommunicate request_size=4 [08:32:20]MH_SAM_APDU [08:32:20]CAPDU: 80 11 00 00 [08:32:20]Write to MH i2c: E2 08 00 FF 01 80 11 00 00 00 00 00 00 7A [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:20]Read from MH i2c: E2 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 17 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: E2 17 00 FF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D1 [08:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:32:20]wFMCommunicate OK [08:32:20]CreateOFDProtocolMessage done [08:32:20]OFDSenderStorePacket 60503 [08:32:20]StoreOFDPacket docnum=60503 [08:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2C 01 00 00 BE F6 24 01 0A B9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 93 FA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 57 EC 00 00 35 04 06 00 5E 6E 1F 0C 07 6D B8 D9 FE A9 35 68 07 51 [08:32:20]CheckFolder [08:32:20]dirname=/storage/ofd_packets [08:32:20]CheckFolder done [08:32:20]ProducePacketName [08:32:20]name=ofd_packets/00060503 [08:32:20]NVStorageSaveData ofd_packets/00060503 [08:32:20]File name is /storage/ofd_packets/00060503 [08:32:20]Write 330 bytes [08:32:20]NVStorageSaveData done [08:32:20]OFDSenderStorePacket done [08:32:20]KKMCreateOFDPacket done [08:32:20]NVStorageSaveData kkm_last_timestamp [08:32:20]File name is /storage/kkm_last_timestamp [08:32:20]Write 4 bytes [08:32:20]NVStorageSaveData done [08:32:20]ExternCall_PrintAddStr [08:32:20]wPrintStart [08:32:20]Write to MH i2c: 01 00 00 00 02 02 [08:32:20]Write i2c OK [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 07 00 [08:32:20]MH_I2C_Read... [08:32:20]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 FF 0F 17 [08:32:20]RasterBufferAndPrint [08:32:20]line Счет N : (3)200146 [08:32:20]line ИНН: 02508201610067 [08:32:20]line Контрольно-Кассовый Чек [08:32:20]line ПРОДАЖА [08:32:20]line Товар: 5449000325907 [08:32:20]line Напиток Фанта 0,45л ж/б [08:32:20]line 1.000 * 90.00 [08:32:20]line = 90.00 [08:32:20]line НДС 12% НСП 1% [08:32:20]line > о реализуемом товаре [08:32:20]line ИТОГО: 90.00 [08:32:20]line НСП 1% : 0.80 [08:32:20]line НДС 12% : 9.56 [08:32:20]line Наличными: 90.00 [08:32:20]line Безнал.: 0.00 [08:32:20]line Место: АЗС № 87 "Партнер Нефть" [08:32:20]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:32:20]line СНО: Общий режим [08:32:20]line Чек 35 27.10.2024 08:32 [08:32:20]line Смена: 532 ФФД: 1.0 [08:32:20]line ЗНМ: 0300000084 [08:32:20]line РНМ: 0000000000091622 [08:32:20]line Версия ККМ: 001 [08:32:20]line ФМ: 0000000000874674 [08:32:20]line ФД: 60503 [08:32:20]line ФПД: 103827060295533 [08:32:21]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083219&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60503&fm=103827060295533&tin=02508201610067®Number=0000000000091622&sum=9000 [08:32:21]line 0 [08:32:21]OFD Sender: Processing packet 60503 [packets to send 30, broken 29] [08:32:21]ProducePacketName [08:32:21]name=ofd_packets/00060503 [08:32:21]OFD Sender: To server: pG, [08:32:21]CommunicateWithHost lk.salyk.kg:30040 [08:32:21]ConnectInit lk.salyk.kg [08:32:21]written 0, free lines is 4095 [08:32:21]Connected sock=10 [08:32: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 36 37 34 2C 01 00 00 BE F6 24 01 0A B9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 33 32 35 39 30 37 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 34 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 93 FA 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 57 EC 00 00 35 04 06 00 5E 6E 1F 0C 07 6D B8 D9 FE A9 35 68 07 51 [08:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 B2 A7 47 00 88 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 36 37 34 10 04 04 00 57 EC 00 00 F4 03 04 00 7C A0 1D 67 B6 04 01 00 00 A8 B4 7C 8B 39 29 70 F0 [08:32:21]CommunicateWithHost err = 0 [08:32:21]CheckOFDResponse [08:32:21]1017 (14) - 77093643461234 [08:32:21]1041 (16) - 0000000000874674 [08:32:21]1040 (4) - 60503 [08:32:21]1012 (4) - 27.10.2024 02:07 [08:32:21]1206 (1) - 0 [08:32:21]OFD Sender: Remove packet 60503 [08:32:21]ProducePacketName [08:32:21]name=ofd_packets/00060503 [08:32:21]NVStorageDeleteData [08:32:21]Write to MH i2c: 01 00 00 28 02 2A [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 07 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 01 0D 3F [08:32:21]RasterBufferAndPrint [08:32:21]line [08:32:21]line [08:32:21]line [08:32:21]line [08:32:21]line [08:32:21]written 0, free lines is 3335 [08:32:21]MH_Cut [08:32:21]Write to MH i2c: D1 01 00 2F 02 01 03 [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: D1 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: D1 01 00 [08:32:21]MH_I2C_Read... [08:32:21]Read from MH i2c: D1 01 00 2F 02 00 02 [08:32:21]Write to MH i2c: 01 00 00 30 02 32 [08:32:21]Write i2c OK [08:32:21]MH_I2C_Read... [08:32:22]OFD Sender: No OFD packet to send [08:32:22]*** Cut start [08:32:22]*** Partial cut [08:32:22]*** CUTSNS_PIN = 1 [08:32:22]*** CUTSNS_PIN = 0 [08:32:22]*** Brake cut motor [08:32:23]Read from MH i2c: 01 [08:32:23]MH_I2C_Read... [08:32:23]*** Stop cut motor [08:32:23]*** Cut end [08:32:23]Read from MH i2c: 01 07 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: 01 07 00 30 02 00 00 00 00 00 FF 0F 47 [08:32:23]process_action close_receipt done [08:32:23]requested_data is exist [08:32:23]produce_requested_data [08:32:23]requested_item fm.sn is exist - process it [08:32:23]wFMCommunicate request_size=4 [08:32:23]MH_SAM_APDU [08:32:23]CAPDU: 80 11 00 00 [08:32:23]Write to MH i2c: E2 08 00 31 02 80 11 00 00 00 00 00 00 AD [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:23]Read from MH i2c: E2 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 17 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 17 00 31 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 04 [08:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:32:23]wFMCommunicate OK [08:32:23]requested_item fd.num is exist - process it [08:32:23]SAM_PROTO_GetFieldsCounters [08:32:23]wFMCommunicate request_size=4 [08:32:23]MH_SAM_APDU [08:32:23]CAPDU: 80 13 00 00 [08:32:23]Write to MH i2c: E2 08 00 32 02 80 13 00 00 00 00 00 00 B0 [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:23]Read from MH i2c: E2 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 62 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 62 00 32 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 57 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [08:32: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 57 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:23]wFMCommunicate OK [08:32:23]SAM_PROTO_GetFieldsCounters done [08:32:23]requested_item shift.num is exist - process it [08:32:23]requested_item shift.opened is exist - process it [08:32:23]req_shift_opened [08:32:23]FM_GetShiftState [08:32:23]SAM_PROTO_GetShiftState [08:32:23]wFMCommunicate request_size=4 [08:32:23]MH_SAM_APDU [08:32:23]CAPDU: 80 13 01 00 [08:32:23]Write to MH i2c: E2 08 00 33 02 80 13 01 00 00 00 00 00 B2 [08:32:23]Write i2c OK [08:32:23]MH_I2C_Read... [08:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:23]Read from MH i2c: E2 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 0E 00 [08:32:23]MH_I2C_Read... [08:32:23]Read from MH i2c: E2 0E 00 33 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 4E [08:32:23]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:32:23]wFMCommunicate OK [08:32:23]SAM_PROTO_GetShiftState done [08:32:23]FM_GetShiftState done [08:32:23]req_shift_opened done [08:32:23]requested_item shift.open_date is exist - process it [08:32:23]req_shift_open_date [08:32:23]req_shift_open_date done [08:32:23]produce_requested_data done [08:32:23]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60503,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:32:23]process_action_free close_receipt [08:32:23]json_value_free [08:32:23]json_value_free done [08:32:23]process_json_proto returns [08:32:23]Send response to host [08:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60503,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:32:23]free response buf [08:32:23]execute_script done [08:32:23]execute_script returns [08:32:23]free content buf [08:32:23]Sock 7.Close socket [08:32:23]Sock 7.Thread stoped [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:53]accept exits with 9 [08:37:53]New connection [08:37:53]New thread 3067219300 created [08:37:53]Thread 3067362660 joined [08:37:53]Waiting for new connection... [08:37:53] Sock 9.Parse request [08:37:53]Sock 9.Check first char [08:37:53]Sock 9.First char is OK [08:37:53]request: POST /json_proto HTTP/1.0 [08:37:53]Method: POST [08:37:53]URL: /json_proto [08:37:53]Method is POST - this is cgi request [08:37:53]url: /json_proto [08:37:53]query_string will be loaded in cgi processing [08:37:53]execute_cgi json_proto POST (null) [08:37:53]execute_cgi path=json_proto method=POST [08:37:53]POST find Content-Length [08:37:53]Host: 172.17.42.196:8080 [08:37:53]Content-Length: 645 [08:37:53]Content-Type: application/json [08:37:53] [08:37:53]POST finish read [08:37:53]Found Content-Length = 645 [08:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200147", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:53]execute_script... [08:37:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200147", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:53]POST & json_proto [08:37:53]process_json_proto [08:37:53]json parsed OK: [08:37:53]protocol is kg_v1.0 [08:37:53]action value=close_receipt [08:37:53]process_action close_receipt [08:37:53]cmd_close_receipt [08:37:53]MH_GetDate [08:37:53]Write to MH i2c: F0 00 00 34 02 25 [08:37:53]Write i2c OK [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: F0 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: F0 09 00 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: F0 09 00 34 02 00 E1 FB 1D 67 FF C4 6B 64 20 [08:37:53]GetLastDocTimeStamp 1730017939 [08:37:53]current date 1730018273 [08:37:53]FM_GetShiftState [08:37:53]SAM_PROTO_GetShiftState [08:37:53]wFMCommunicate request_size=4 [08:37:53]MH_SAM_APDU [08:37:53]CAPDU: 80 13 01 00 [08:37:53]Write to MH i2c: E2 08 00 35 02 80 13 01 00 00 00 00 00 B4 [08:37:53]Write i2c OK [08:37:53]MH_I2C_Read... [08:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:53]Read from MH i2c: E2 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 0E 00 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 0E 00 35 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 50 [08:37:53]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:37:53]wFMCommunicate OK [08:37:53]SAM_PROTO_GetShiftState done [08:37:53]FM_GetShiftState done [08:37:53]opened in 1729989505 [08:37:53]opened+sec_in_day 1730075905 [08:37:53]quantity*price = 6500 [08:37:53]sum+1 = 6501 [08:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 36 27.10.2024 08:37 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60504 ФПД: 131165927046315 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083753&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60504&fm=131165927046315&tin=02508201610067®Number=0000000000091622&sum=6500 0 [08:37:54]StoreToDocumentArchive [08:37:54]shift 532 fd 60504 [08:37:54]save to /storage/0532/doc_00060504 [08:37:54]save last doc name /storage/0532/doc_00060504 to /storage/kkm_last_doc_name [08:37:54]save OK [08:37:54]Clear old archive folders... [08:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:37:54]tlvbuf is 00202900 [08:37:54]SAM_PROTO_ClearQueue [08:37:54]wFMCommunicate request_size=4 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 09 00 00 [08:37:54]Write to MH i2c: E2 08 00 42 02 80 09 00 00 00 00 00 00 B6 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [08:37:54]RAPDU: 90 00 [08:37:54]wFMCommunicate OK [08:37:54]SAM_PROTO_ClearQueue done [08:37:54]KKMCreateOFDPacket [08:37:54]OFDProtocolAddRootSTLVToBuf [08:37:54]FM_MakeSignedData [08:37:54]FM_MakeSignedData [08:37:54]SAM_PROTO_SignData [08:37:54]wFMCommunicate request_size=4 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 0D 01 02 [08:37:54]Write to MH i2c: E2 08 00 43 02 80 0D 01 02 00 00 00 00 BE [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [08:37:54]RAPDU: 90 00 [08:37:54]wFMCommunicate OK [08:37:54]wFMCommunicate request_size=255 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E1 FB 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [08:37:54]Write to MH i2c: E2 02 01 44 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E1 FB 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 9F [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 44 02 00 90 00 BA [08:37:54]RAPDU: 90 00 [08:37:54]wFMCommunicate OK [08:37:54]wFMCommunicate request_size=31 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 34 10 04 04 00 58 EC 00 00 35 04 06 00 77 4B 72 7C FC AB [08:37:54]Write to MH i2c: E2 22 00 45 02 80 0D 02 02 1A 00 30 30 38 37 34 36 37 34 10 04 04 00 58 EC 00 00 35 04 06 00 77 4B 72 7C FC AB 00 00 8B [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 45 02 00 90 00 BB [08:37:54]RAPDU: 90 00 [08:37:54]wFMCommunicate OK [08:37:54]wFMCommunicate request_size=4 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 0D 03 02 [08:37:54]Write to MH i2c: E2 08 00 46 02 80 0D 03 02 00 00 00 00 C3 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 0B 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 0B 00 46 02 00 F5 AD CB 69 84 13 F2 83 90 00 A6 [08:37:54]RAPDU: F5 AD CB 69 84 13 F2 83 90 00 [08:37:54]wFMCommunicate OK [08:37:54]SAM_PROTO_SignData done [08:37:54]FM_MakeSignedData done [08:37:54]CreateOFDProtocolMessage [08:37:54]wFMCommunicate request_size=4 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 11 00 00 [08:37:54]Write to MH i2c: E2 08 00 47 02 80 11 00 00 00 00 00 00 C3 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 17 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 17 00 47 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 1A [08:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:37:54]wFMCommunicate OK [08:37:54]CreateOFDProtocolMessage done [08:37:54]OFDSenderStorePacket 60504 [08:37:54]StoreOFDPacket docnum=60504 [08:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 24 01 00 00 34 9A 1C 01 46 A4 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E1 FB 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 58 EC 00 00 35 04 06 00 77 4B 72 7C FC AB F5 AD CB 69 84 13 F2 83 [08:37:54]CheckFolder [08:37:54]dirname=/storage/ofd_packets [08:37:54]CheckFolder done [08:37:54]ProducePacketName [08:37:54]name=ofd_packets/00060504 [08:37:54]NVStorageSaveData ofd_packets/00060504 [08:37:54]File name is /storage/ofd_packets/00060504 [08:37:54]Write 322 bytes [08:37:54]NVStorageSaveData done [08:37:54]OFDSenderStorePacket done [08:37:54]KKMCreateOFDPacket done [08:37:54]NVStorageSaveData kkm_last_timestamp [08:37:54]File name is /storage/kkm_last_timestamp [08:37:54]Write 4 bytes [08:37:54]NVStorageSaveData done [08:37:54]OFD Sender: Processing packet 60504 [packets to send 30, broken 29] [08:37:54]ProducePacketName [08:37:54]name=ofd_packets/00060504 [08:37:54]OFD Sender: To server: pG, [08:37:54]CommunicateWithHost lk.salyk.kg:30040 [08:37:54]ConnectInit lk.salyk.kg [08:37:54]ExternCall_PrintAddStr [08:37:54]wPrintStart [08:37:54]Write to MH i2c: 01 00 00 48 02 4A [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 07 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 07 00 48 02 00 00 00 00 00 FF 0F 5F [08:37:54]RasterBufferAndPrint [08:37:54]line Счет N : (3)200147 [08:37:54]line ИНН: 02508201610067 [08:37:54]line Контрольно-Кассовый Чек [08:37:54]line ПРОДАЖА [08:37:54]line Товар: 47011656 [08:37:54]line Водка Пшеничная 0,1л [08:37:54]line 1.000 * 65.00 [08:37:54]line = 65.00 [08:37:54]line НДС 12% НСП 1% [08:37:54]line > о реализуемом товаре [08:37:54]line ИТОГО: 65.00 [08:37:54]line НСП 1% : 0.57 [08:37:54]line НДС 12% : 6.90 [08:37:54]line Наличными: 65.00 [08:37:54]line Безнал.: 0.00 [08:37:54]line Место: АЗС № 87 "Партнер Нефть" [08:37:54]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:37:54]line СНО: Общий режим [08:37:54]line Чек 36 27.10.2024 08:37 [08:37:54]line Смена: 532 ФФД: 1.0 [08:37:54]line ЗНМ: 0300000084 [08:37:54]line РНМ: 0000000000091622 [08:37:54]line Версия ККМ: 001 [08:37:54]line ФМ: 0000000000874674 [08:37:54]line ФД: 60504 [08:37:54]line ФПД: 131165927046315 [08:37:55]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083753&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60504&fm=131165927046315&tin=02508201610067®Number=0000000000091622&sum=6500 [08:37:55]line 0 [08:37:55]Connected sock=11 [08:37: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 36 37 34 24 01 00 00 34 9A 1C 01 46 A4 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 E1 FB 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 58 EC 00 00 35 04 06 00 77 4B 72 7C FC AB F5 AD CB 69 84 13 F2 83 [08:37:55]written 0, free lines is 4095 [08:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 9F A4 47 00 61 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 36 37 34 10 04 04 00 58 EC 00 00 F4 03 04 00 C9 A1 1D 67 B6 04 01 00 00 D6 C5 E8 37 52 C8 F8 0C [08:37:55]CommunicateWithHost err = 0 [08:37:55]CheckOFDResponse [08:37:55]1017 (14) - 77093643461234 [08:37:55]1041 (16) - 0000000000874674 [08:37:55]1040 (4) - 60504 [08:37:55]1012 (4) - 27.10.2024 02:13 [08:37:55]1206 (1) - 0 [08:37:55]OFD Sender: Remove packet 60504 [08:37:55]ProducePacketName [08:37:55]name=ofd_packets/00060504 [08:37:55]NVStorageDeleteData [08:37:55]Write to MH i2c: 01 00 00 70 02 72 [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: 01 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: 01 07 00 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 EE 0C 73 [08:37:55]RasterBufferAndPrint [08:37:55]line [08:37:55]line [08:37:55]line [08:37:55]line [08:37:55]line [08:37:55]written 0, free lines is 3316 [08:37:55]MH_Cut [08:37:55]Write to MH i2c: D1 01 00 77 02 01 4B [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: D1 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: D1 01 00 [08:37:55]MH_I2C_Read... [08:37:55]Read from MH i2c: D1 01 00 77 02 00 4A [08:37:55]Write to MH i2c: 01 00 00 78 02 7A [08:37:55]Write i2c OK [08:37:55]MH_I2C_Read... [08:37:55]OFD Sender: No OFD packet to send [08:37:56]*** Cut start [08:37:56]*** Partial cut [08:37:56]*** CUTSNS_PIN = 1 [08:37:56]*** CUTSNS_PIN = 0 [08:37:56]*** Brake cut motor [08:37:56]Read from MH i2c: 01 [08:37:56]MH_I2C_Read... [08:37:56]*** Stop cut motor [08:37:56]*** Cut end [08:37:56]Read from MH i2c: 01 07 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [08:37:56]process_action close_receipt done [08:37:56]requested_data is exist [08:37:56]produce_requested_data [08:37:56]requested_item fm.sn is exist - process it [08:37:56]wFMCommunicate request_size=4 [08:37:56]MH_SAM_APDU [08:37:56]CAPDU: 80 11 00 00 [08:37:56]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:57]Read from MH i2c: E2 [08:37:57]MH_I2C_Read... [08:37:57]Read from MH i2c: E2 17 00 [08:37:57]MH_I2C_Read... [08:37:57]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 4C [08:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:37:57]wFMCommunicate OK [08:37:57]requested_item fd.num is exist - process it [08:37:57]SAM_PROTO_GetFieldsCounters [08:37:57]wFMCommunicate request_size=4 [08:37:57]MH_SAM_APDU [08:37:57]CAPDU: 80 13 00 00 [08:37:57]Write to MH i2c: E2 08 00 7A 02 80 13 00 00 00 00 00 00 F8 [08:37:57]Write i2c OK [08:37:57]MH_I2C_Read... [08:37:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:57]Read from MH i2c: E2 [08:37:57]MH_I2C_Read... [08:37:57]Read from MH i2c: E2 62 00 [08:37:57]MH_I2C_Read... [08:37:57]Read from MH i2c: E2 62 00 7A 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 58 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [08:37: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 58 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:57]wFMCommunicate OK [08:37:57]SAM_PROTO_GetFieldsCounters done [08:37:57]requested_item shift.num is exist - process it [08:37:57]requested_item shift.opened is exist - process it [08:37:57]req_shift_opened [08:37:57]FM_GetShiftState [08:37:57]SAM_PROTO_GetShiftState [08:37:57]wFMCommunicate request_size=4 [08:37:57]MH_SAM_APDU [08:37:57]CAPDU: 80 13 01 00 [08:37:57]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [08:37:57]Write i2c OK [08:37:57]MH_I2C_Read... [08:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:57]Read from MH i2c: E2 [08:37:57]MH_I2C_Read... [08:37:57]Read from MH i2c: E2 0E 00 [08:37:57]MH_I2C_Read... [08:37:57]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 96 [08:37:57]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:37:57]wFMCommunicate OK [08:37:57]SAM_PROTO_GetShiftState done [08:37:57]FM_GetShiftState done [08:37:57]req_shift_opened done [08:37:57]requested_item shift.open_date is exist - process it [08:37:57]req_shift_open_date [08:37:57]req_shift_open_date done [08:37:57]produce_requested_data done [08:37:57]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60504,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:37:57]process_action_free close_receipt [08:37:57]json_value_free [08:37:57]json_value_free done [08:37:57]process_json_proto returns [08:37:57]Send response to host [08:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60504,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:37:57]free response buf [08:37:57]execute_script done [08:37:57]execute_script returns [08:37:57]free content buf [08:37:57]Sock 9.Close socket [08:37:57]Sock 9.Thread stoped [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:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:43]accept exits with 7 [08:40:43]New connection [08:40:43]New thread 3067362660 created [08:40:43]Thread 3067219300 joined [08:40:43]Waiting for new connection... [08:40:43] Sock 7.Parse request [08:40:43]Sock 7.Check first char [08:40:43]Sock 7.First char is OK [08:40:43]request: POST /json_proto HTTP/1.0 [08:40:43]Method: POST [08:40:43]URL: /json_proto [08:40:43]Method is POST - this is cgi request [08:40:43]url: /json_proto [08:40:43]query_string will be loaded in cgi processing [08:40:43]execute_cgi json_proto POST (null) [08:40:43]execute_cgi path=json_proto method=POST [08:40:43]POST find Content-Length [08:40:43]Host: 172.17.42.196:8080 [08:40:43]Content-Length: 749 [08:40:43]Content-Type: application/json [08:40:43] [08:40:43]POST finish read [08:40:43]Found Content-Length = 749 [08:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200148", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:43]execute_script... [08:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200148", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:43]POST & json_proto [08:40:43]process_json_proto [08:40:43]json parsed OK: [08:40:43]protocol is kg_v1.0 [08:40:43]action value=close_receipt [08:40:43]process_action close_receipt [08:40:43]cmd_close_receipt [08:40:43]MH_GetDate [08:40:43]Write to MH i2c: F0 00 00 7C 02 6D [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: F0 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: F0 09 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: F0 09 00 7C 02 00 8B FC 1D 67 FF C4 6B 64 13 [08:40:43]GetLastDocTimeStamp 1730018273 [08:40:43]current date 1730018443 [08:40:43]FM_GetShiftState [08:40:43]SAM_PROTO_GetShiftState [08:40:43]wFMCommunicate request_size=4 [08:40:43]MH_SAM_APDU [08:40:43]CAPDU: 80 13 01 00 [08:40:43]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [08:40:43]Write i2c OK [08:40:43]MH_I2C_Read... [08:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:43]Read from MH i2c: E2 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 0E 00 [08:40:43]MH_I2C_Read... [08:40:43]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 98 [08:40:43]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:40:43]wFMCommunicate OK [08:40:43]SAM_PROTO_GetShiftState done [08:40:43]FM_GetShiftState done [08:40:43]opened in 1729989505 [08:40:43]opened+sec_in_day 1730075905 [08:40:43]quantity*price = 15900 [08:40:43]sum+1 = 15901 [08:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 37 27.10.2024 08:40 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60505 ФПД: 251515878680136 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084043&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60505&fm=251515878680136&tin=02508201610067®Number=0000000000091622&sum=15900 0 [08:40:44]StoreToDocumentArchive [08:40:44]shift 532 fd 60505 [08:40:44]save to /storage/0532/doc_00060505 [08:40:44]save last doc name /storage/0532/doc_00060505 to /storage/kkm_last_doc_name [08:40:44]save OK [08:40:44]Clear old archive folders... [08:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:40:44]tlvbuf is 001C7A90 [08:40:44]SAM_PROTO_ClearQueue [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 09 00 00 [08:40:44]Write to MH i2c: E2 08 00 8A 02 80 09 00 00 00 00 00 00 FE [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]SAM_PROTO_ClearQueue done [08:40:44]KKMCreateOFDPacket [08:40:44]OFDProtocolAddRootSTLVToBuf [08:40:44]FM_MakeSignedData [08:40:44]FM_MakeSignedData [08:40:44]SAM_PROTO_SignData [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 01 02 [08:40:44]Write to MH i2c: E2 08 00 8B 02 80 0D 01 02 00 00 00 00 06 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]wFMCommunicate request_size=255 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8B FC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 [08:40:44]Write to MH i2c: E2 02 01 8C 02 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8B FC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 00 00 6B [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]wFMCommunicate request_size=33 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 34 10 04 04 00 59 EC 00 00 35 04 06 00 E4 C0 9A 9A A6 48 [08:40:44]Write to MH i2c: E2 24 00 8D 02 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 34 10 04 04 00 59 EC 00 00 35 04 06 00 E4 C0 9A 9A A6 48 00 00 A7 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [08:40:44]RAPDU: 90 00 [08:40:44]wFMCommunicate OK [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 0D 03 02 [08:40:44]Write to MH i2c: E2 08 00 8E 02 80 0D 03 02 00 00 00 00 0B [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 0B 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 0B 00 8E 02 00 20 F7 C9 29 AE 18 C2 EB 90 00 88 [08:40:44]RAPDU: 20 F7 C9 29 AE 18 C2 EB 90 00 [08:40:44]wFMCommunicate OK [08:40:44]SAM_PROTO_SignData done [08:40:44]FM_MakeSignedData done [08:40:44]CreateOFDProtocolMessage [08:40:44]wFMCommunicate request_size=4 [08:40:44]MH_SAM_APDU [08:40:44]CAPDU: 80 11 00 00 [08:40:44]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:44]Read from MH i2c: E2 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 17 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: E2 17 00 8F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 62 [08:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:40:44]wFMCommunicate OK [08:40:44]CreateOFDProtocolMessage done [08:40:44]OFDSenderStorePacket 60505 [08:40:44]StoreOFDPacket docnum=60505 [08:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 26 01 00 00 C5 BB 1E 01 59 40 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8B FC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 59 EC 00 00 35 04 06 00 E4 C0 9A 9A A6 48 20 F7 C9 29 AE 18 C2 EB [08:40:44]CheckFolder [08:40:44]dirname=/storage/ofd_packets [08:40:44]CheckFolder done [08:40:44]ProducePacketName [08:40:44]name=ofd_packets/00060505 [08:40:44]NVStorageSaveData ofd_packets/00060505 [08:40:44]File name is /storage/ofd_packets/00060505 [08:40:44]Write 324 bytes [08:40:44]NVStorageSaveData done [08:40:44]OFDSenderStorePacket done [08:40:44]KKMCreateOFDPacket done [08:40:44]NVStorageSaveData kkm_last_timestamp [08:40:44]File name is /storage/kkm_last_timestamp [08:40:44]Write 4 bytes [08:40:44]NVStorageSaveData done [08:40:44]ExternCall_PrintAddStr [08:40:44]wPrintStart [08:40:44]Write to MH i2c: 01 00 00 90 02 92 [08:40:44]Write i2c OK [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 07 00 [08:40:44]MH_I2C_Read... [08:40:44]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [08:40:44]RasterBufferAndPrint [08:40:44]line Счет N : (3)200148 [08:40:44]line ИНН: 02508201610067 [08:40:44]line Контрольно-Кассовый Чек [08:40:44]line ПРОДАЖА [08:40:44]line Товар: 4640030091645 [08:40:44]line Сигареты ESSE Exchange M [08:40:44]line 1.000 * 159.00 [08:40:44]line = 159.00 [08:40:44]line НДС 12% НСП 1% [08:40:44]line > о реализуемом товаре [08:40:44]line ИТОГО: 159.00 [08:40:44]line НСП 1% : 1.41 [08:40:44]line НДС 12% : 16.88 [08:40:44]line Наличными: 0.00 [08:40:44]line Безнал.: 159.00 [08:40:44]line Место: АЗС № 87 "Партнер Нефть" [08:40:44]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:40:44]line СНО: Общий режим [08:40:44]line Чек 37 27.10.2024 08:40 [08:40:44]line Смена: 532 ФФД: 1.0 [08:40:44]line ЗНМ: 0300000084 [08:40:44]line РНМ: 0000000000091622 [08:40:44]line Версия ККМ: 001 [08:40:44]line Платежная система: Mbank [08:40:44]line ФМ: 0000000000874674 [08:40:44]line ФД: 60505 [08:40:44]line ФПД: 251515878680136 [08:40:45]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084043&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60505&fm=251515878680136&tin=02508201610067®Number=0000000000091622&sum=15900 [08:40:45]line 0 [08:40:45]OFD Sender: Processing packet 60505 [packets to send 30, broken 29] [08:40:45]ProducePacketName [08:40:45]name=ofd_packets/00060505 [08:40:45]OFD Sender: To server: pG, [08:40:45]CommunicateWithHost lk.salyk.kg:30040 [08:40:45]ConnectInit lk.salyk.kg [08:40:45]written 0, free lines is 4095 [08:40:45]Connected sock=11 [08:40: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 36 37 34 26 01 00 00 C5 BB 1E 01 59 40 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 8B FC 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 59 EC 00 00 35 04 06 00 E4 C0 9A 9A A6 48 20 F7 C9 29 AE 18 C2 EB [08:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 8A 56 47 00 01 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 36 37 34 10 04 04 00 59 EC 00 00 F4 03 04 00 73 A2 1D 67 B6 04 01 00 00 30 DF DB A9 79 DD 7E 5A [08:40:45]CommunicateWithHost err = 0 [08:40:45]CheckOFDResponse [08:40:45]1017 (14) - 77093643461234 [08:40:45]1041 (16) - 0000000000874674 [08:40:45]1040 (4) - 60505 [08:40:45]1012 (4) - 27.10.2024 02:16 [08:40:45]1206 (1) - 0 [08:40:45]OFD Sender: Remove packet 60505 [08:40:45]ProducePacketName [08:40:45]name=ofd_packets/00060505 [08:40:45]NVStorageDeleteData [08:40:45]Write to MH i2c: 01 00 00 B9 02 BB [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: 01 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: 01 07 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 EE 0C BC [08:40:45]RasterBufferAndPrint [08:40:45]line [08:40:45]line [08:40:45]line [08:40:45]line [08:40:45]line [08:40:45]written 0, free lines is 3317 [08:40:45]MH_Cut [08:40:45]Write to MH i2c: D1 01 00 C0 02 01 94 [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: D1 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: D1 01 00 [08:40:45]MH_I2C_Read... [08:40:45]Read from MH i2c: D1 01 00 C0 02 00 93 [08:40:45]Write to MH i2c: 01 00 00 C1 02 C3 [08:40:45]Write i2c OK [08:40:45]MH_I2C_Read... [08:40:46]OFD Sender: No OFD packet to send [08:40:46]*** Cut start [08:40:46]*** Partial cut [08:40:46]*** CUTSNS_PIN = 1 [08:40:46]*** CUTSNS_PIN = 0 [08:40:46]*** Brake cut motor [08:40:47]Read from MH i2c: 01 [08:40:47]MH_I2C_Read... [08:40:47]*** Stop cut motor [08:40:47]*** Cut end [08:40:47]Read from MH i2c: 01 07 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 FF 0F D8 [08:40:47]process_action close_receipt done [08:40:47]requested_data is exist [08:40:47]produce_requested_data [08:40:47]requested_item fm.sn is exist - process it [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 11 00 00 [08:40:47]Write to MH i2c: E2 08 00 C2 02 80 11 00 00 00 00 00 00 3E [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 17 00 C2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 95 [08:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:40:47]wFMCommunicate OK [08:40:47]requested_item fd.num is exist - process it [08:40:47]SAM_PROTO_GetFieldsCounters [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 13 00 00 [08:40:47]Write to MH i2c: E2 08 00 C3 02 80 13 00 00 00 00 00 00 41 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 62 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 62 00 C3 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 59 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [08:40: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 59 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_GetFieldsCounters done [08:40:47]requested_item shift.num is exist - process it [08:40:47]requested_item shift.opened is exist - process it [08:40:47]req_shift_opened [08:40:47]FM_GetShiftState [08:40:47]SAM_PROTO_GetShiftState [08:40:47]wFMCommunicate request_size=4 [08:40:47]MH_SAM_APDU [08:40:47]CAPDU: 80 13 01 00 [08:40:47]Write to MH i2c: E2 08 00 C4 02 80 13 01 00 00 00 00 00 43 [08:40:47]Write i2c OK [08:40:47]MH_I2C_Read... [08:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:47]Read from MH i2c: E2 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0E 00 [08:40:47]MH_I2C_Read... [08:40:47]Read from MH i2c: E2 0E 00 C4 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 DF [08:40:47]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:40:47]wFMCommunicate OK [08:40:47]SAM_PROTO_GetShiftState done [08:40:47]FM_GetShiftState done [08:40:47]req_shift_opened done [08:40:47]requested_item shift.open_date is exist - process it [08:40:47]req_shift_open_date [08:40:47]req_shift_open_date done [08:40:47]produce_requested_data done [08:40:47]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60505,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:40:47]process_action_free close_receipt [08:40:47]json_value_free [08:40:47]json_value_free done [08:40:47]process_json_proto returns [08:40:47]Send response to host [08:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60505,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:40:47]free response buf [08:40:47]execute_script done [08:40:47]execute_script returns [08:40:47]free content buf [08:40:47]Sock 7.Close socket [08:40:47]Sock 7.Thread stoped [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:32]ConnectInit Can't connect to host [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:30]accept exits with 10 [08:46:30]New connection [08:46:30]New thread 3067219300 created [08:46:30]Thread 3067362660 joined [08:46:30]Waiting for new connection... [08:46:30] Sock 10.Parse request [08:46:30]Sock 10.Check first char [08:46:30]Sock 10.First char is OK [08:46:30]request: POST /json_proto HTTP/1.0 [08:46:30]Method: POST [08:46:30]URL: /json_proto [08:46:30]Method is POST - this is cgi request [08:46:30]url: /json_proto [08:46:30]query_string will be loaded in cgi processing [08:46:30]execute_cgi json_proto POST (null) [08:46:30]execute_cgi path=json_proto method=POST [08:46:30]POST find Content-Length [08:46:30]Host: 172.17.42.196:8080 [08:46:30]Content-Length: 689 [08:46:30]Content-Type: application/json [08:46:30] [08:46:30]POST finish read [08:46:30]Found Content-Length = 689 [08:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:30]execute_script... [08: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)3311439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:30]POST & json_proto [08:46:30]process_json_proto [08:46:30]json parsed OK: [08:46:30]protocol is kg_v1.0 [08:46:30]action value=close_receipt [08:46:30]process_action close_receipt [08:46:30]cmd_close_receipt [08:46:30]MH_GetDate [08:46:30]Write to MH i2c: F0 00 00 C5 02 B6 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: F0 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: F0 09 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: F0 09 00 C5 02 00 E6 FD 1D 67 FF C4 6B 64 B8 [08:46:30]GetLastDocTimeStamp 1730018443 [08:46:30]current date 1730018790 [08:46:30]FM_GetShiftState [08:46:30]SAM_PROTO_GetShiftState [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 13 01 00 [08:46:30]Write to MH i2c: E2 08 00 C6 02 80 13 01 00 00 00 00 00 45 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 0E 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 0E 00 C6 02 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 E1 [08:46:30]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:46:30]wFMCommunicate OK [08:46:30]SAM_PROTO_GetShiftState done [08:46:30]FM_GetShiftState done [08:46:30]opened in 1729989505 [08:46:30]opened+sec_in_day 1730075905 [08:46:30]quantity*price = 100051 [08:46:30]sum+1 = 100052 [08:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 38 27.10.2024 08:46 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60506 ФПД: 238341325395835 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084630&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60506&fm=238341325395835&tin=02508201610067®Number=0000000000091622&sum=100000 [08:46:31]StoreToDocumentArchive [08:46:31]shift 532 fd 60506 [08:46:31]save to /storage/0532/doc_00060506 [08:46:31]save last doc name /storage/0532/doc_00060506 to /storage/kkm_last_doc_name [08:46:31]save OK [08:46:31]Clear old archive folders... [08:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:46:31]tlvbuf is 00208CB0 [08:46:31]SAM_PROTO_ClearQueue [08:46:31]wFMCommunicate request_size=4 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 09 00 00 [08:46:31]Write to MH i2c: E2 08 00 D3 02 80 09 00 00 00 00 00 00 47 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [08:46:31]RAPDU: 90 00 [08:46:31]wFMCommunicate OK [08:46:31]SAM_PROTO_ClearQueue done [08:46:31]KKMCreateOFDPacket [08:46:31]OFDProtocolAddRootSTLVToBuf [08:46:31]FM_MakeSignedData [08:46:31]FM_MakeSignedData [08:46:31]SAM_PROTO_SignData [08:46:31]wFMCommunicate request_size=4 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 0D 01 02 [08:46:31]Write to MH i2c: E2 08 00 D4 02 80 0D 01 02 00 00 00 00 4F [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [08:46:31]RAPDU: 90 00 [08:46:31]wFMCommunicate OK [08:46:31]wFMCommunicate request_size=255 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5A EC 00 [08:46:31]Write to MH i2c: E2 02 01 D5 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5A EC 00 00 00 2F [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]OFD Sender: No OFD packet to send [08:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [08:46:31]RAPDU: 90 00 [08:46:31]wFMCommunicate OK [08:46:31]wFMCommunicate request_size=16 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D8 C5 2A 09 17 7B [08:46:31]Write to MH i2c: E2 13 00 D6 02 80 0D 02 02 0B 00 00 35 04 06 00 D8 C5 2A 09 17 7B 00 00 09 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [08:46:31]RAPDU: 90 00 [08:46:31]wFMCommunicate OK [08:46:31]wFMCommunicate request_size=4 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 0D 03 02 [08:46:31]Write to MH i2c: E2 08 00 D7 02 80 0D 03 02 00 00 00 00 54 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 0B 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 0B 00 D7 02 00 AE 4C EE 96 6F 2A 9A 93 90 00 99 [08:46:31]RAPDU: AE 4C EE 96 6F 2A 9A 93 90 00 [08:46:31]wFMCommunicate OK [08:46:31]SAM_PROTO_SignData done [08:46:31]FM_MakeSignedData done [08:46:31]CreateOFDProtocolMessage [08:46:31]wFMCommunicate request_size=4 [08:46:31]MH_SAM_APDU [08:46:31]CAPDU: 80 11 00 00 [08:46:31]Write to MH i2c: E2 08 00 D8 02 80 11 00 00 00 00 00 00 54 [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:31]Read from MH i2c: E2 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 17 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: E2 17 00 D8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AB [08:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:46:31]wFMCommunicate OK [08:46:31]CreateOFDProtocolMessage done [08:46:31]OFDSenderStorePacket 60506 [08:46:31]StoreOFDPacket docnum=60506 [08:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 15 01 00 00 90 2E 0D 01 47 D4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5A EC 00 00 35 04 06 00 D8 C5 2A 09 17 7B AE 4C EE 96 6F 2A 9A 93 [08:46:31]CheckFolder [08:46:31]dirname=/storage/ofd_packets [08:46:31]CheckFolder done [08:46:31]ProducePacketName [08:46:31]name=ofd_packets/00060506 [08:46:31]NVStorageSaveData ofd_packets/00060506 [08:46:31]File name is /storage/ofd_packets/00060506 [08:46:31]Write 307 bytes [08:46:31]NVStorageSaveData done [08:46:31]OFDSenderStorePacket done [08:46:31]KKMCreateOFDPacket done [08:46:31]NVStorageSaveData kkm_last_timestamp [08:46:31]File name is /storage/kkm_last_timestamp [08:46:31]Write 4 bytes [08:46:31]NVStorageSaveData done [08:46:31]ExternCall_PrintAddStr [08:46:31]wPrintStart [08:46:31]Write to MH i2c: 01 00 00 D9 02 DB [08:46:31]Write i2c OK [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 [08:46:31]MH_I2C_Read... [08:46:31]Read from MH i2c: 01 07 00 D9 02 00 00 00 00 00 FF 0F F0 [08:46:31]RasterBufferAndPrint [08:46:31]line Счет N : (1)3311439 [08:46:31]line ИНН: 02508201610067 [08:46:31]line Контрольно-Кассовый Чек [08:46:31]line ПРОДАЖА [08:46:31]line ТРК (МРК, ГНК) : 11 [08:46:31]line Товар: 2710194240 [08:46:31]line D-Energy Дт-К-2 [08:46:31]line 12.960 * 77.20 [08:46:31]line = 1000.51 [08:46:31]line НДС 12% НСП 1% [08:46:31]line > о реализуемом товаре [08:46:31]line ОКРУГЛЕНИЕ: -0.51 [08:46:31]line ИТОГО: 1000.00 [08:46:31]line Внесено: 1000.00 [08:46:31]line СДАЧА: 0.00 [08:46:31]line НСП 1% : 8.85 [08:46:31]line НДС 12% : 106.25 [08:46:31]line Наличными: 1000.00 [08:46:31]line Безнал.: 0.00 [08:46:31]line Место: АЗС № 87 "Партнер Нефть" [08:46:31]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:46:31]line СНО: Общий режим [08:46:31]line Чек 38 27.10.2024 08:46 [08:46:31]line Смена: 532 ФФД: 1.0 [08:46:31]line ЗНМ: 0300000084 [08:46:31]line РНМ: 0000000000091622 [08:46:31]line Версия ККМ: 001 [08:46:31]line ФМ: 0000000000874674 [08:46:31]line ФД: 60506 [08:46:31]line ФПД: 238341325395835 [08:46:32]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084630&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60506&fm=238341325395835&tin=02508201610067®Number=0000000000091622&sum=100000 [08:46:32]OFD Sender: Processing packet 60506 [packets to send 30, broken 29] [08:46:32]ProducePacketName [08:46:32]name=ofd_packets/00060506 [08:46:32]OFD Sender: To server: pG, [08:46:32]CommunicateWithHost lk.salyk.kg:30040 [08:46:32]ConnectInit lk.salyk.kg [08:46:32]written 0, free lines is 4095 [08:46:32]Connected sock=9 [08: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 36 37 34 15 01 00 00 90 2E 0D 01 47 D4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 E6 FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5A EC 00 00 35 04 06 00 D8 C5 2A 09 17 7B AE 4C EE 96 6F 2A 9A 93 [08: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 36 37 34 4F 00 00 00 96 FB 47 00 01 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5A EC 00 00 F4 03 04 00 CE A3 1D 67 B6 04 01 00 00 01 5C 9F 8C 91 95 93 B0 [08:46:32]CommunicateWithHost err = 0 [08:46:32]CheckOFDResponse [08:46:32]1017 (14) - 77093643461234 [08:46:32]1041 (16) - 0000000000874674 [08:46:32]1040 (4) - 60506 [08:46:32]1012 (4) - 27.10.2024 02:22 [08:46:32]1206 (1) - 0 [08:46:32]OFD Sender: Remove packet 60506 [08:46:32]ProducePacketName [08:46:32]name=ofd_packets/00060506 [08:46:32]NVStorageDeleteData [08:46:32]Write to MH i2c: 01 00 00 04 03 07 [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: 01 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: 01 07 00 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 DD 0C F7 [08:46:32]RasterBufferAndPrint [08:46:32]line [08:46:32]line [08:46:32]line [08:46:32]line [08:46:32]line [08:46:32]written 0, free lines is 3299 [08:46:32]MH_Cut [08:46:32]Write to MH i2c: D1 01 00 0B 03 01 E0 [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: D1 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: D1 01 00 [08:46:32]MH_I2C_Read... [08:46:32]Read from MH i2c: D1 01 00 0B 03 00 DF [08:46:32]Write to MH i2c: 01 00 00 0C 03 0F [08:46:32]Write i2c OK [08:46:32]MH_I2C_Read... [08:46:32]OFD Sender: No OFD packet to send [08:46:33]*** Cut start [08:46:33]*** Partial cut [08:46:33]*** CUTSNS_PIN = 1 [08:46:33]*** CUTSNS_PIN = 0 [08:46:33]*** Brake cut motor [08:46:34]Read from MH i2c: 01 [08:46:34]MH_I2C_Read... [08:46:34]*** Stop cut motor [08:46:34]*** Cut end [08:46:34]Read from MH i2c: 01 07 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FF 0F 24 [08:46:34]process_action close_receipt done [08:46:34]requested_data is exist [08:46:34]produce_requested_data [08:46:34]requested_item fm.sn is exist - process it [08:46:34]wFMCommunicate request_size=4 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 11 00 00 [08:46:34]Write to MH i2c: E2 08 00 0D 03 80 11 00 00 00 00 00 00 8A [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 17 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 17 00 0D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E1 [08:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:46:34]wFMCommunicate OK [08:46:34]requested_item fd.num is exist - process it [08:46:34]SAM_PROTO_GetFieldsCounters [08:46:34]wFMCommunicate request_size=4 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 13 00 00 [08:46:34]Write to MH i2c: E2 08 00 0E 03 80 13 00 00 00 00 00 00 8D [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 62 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 62 00 0E 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [08:46: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:34]wFMCommunicate OK [08:46:34]SAM_PROTO_GetFieldsCounters done [08:46:34]requested_item shift.num is exist - process it [08:46:34]requested_item shift.opened is exist - process it [08:46:34]req_shift_opened [08:46:34]FM_GetShiftState [08:46:34]SAM_PROTO_GetShiftState [08:46:34]wFMCommunicate request_size=4 [08:46:34]MH_SAM_APDU [08:46:34]CAPDU: 80 13 01 00 [08:46:34]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [08:46:34]Write i2c OK [08:46:34]MH_I2C_Read... [08:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:34]Read from MH i2c: E2 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 0E 00 [08:46:34]MH_I2C_Read... [08:46:34]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 2B [08:46:34]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:46:34]wFMCommunicate OK [08:46:34]SAM_PROTO_GetShiftState done [08:46:34]FM_GetShiftState done [08:46:34]req_shift_opened done [08:46:34]requested_item shift.open_date is exist - process it [08:46:34]req_shift_open_date [08:46:34]req_shift_open_date done [08:46:34]produce_requested_data done [08:46:34]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60506,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:46:34]process_action_free close_receipt [08:46:34]json_value_free [08:46:34]json_value_free done [08:46:34]process_json_proto returns [08:46:34]Send response to host [08:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60506,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:46:34]free response buf [08:46:34]execute_script done [08:46:34]execute_script returns [08:46:34]free content buf [08:46:34]Sock 10.Close socket [08:46:34]Sock 10.Thread stoped [08:46:36]accept exits with 7 [08:46:36]New connection [08:46:36]New thread 3067362660 created [08:46:36]Thread 3067219300 joined [08:46:36]Waiting for new connection... [08:46:36] Sock 7.Parse request [08:46:36]Sock 7.Check first char [08:46:36]Sock 7.First char is OK [08:46:36]request: POST /json_proto HTTP/1.0 [08:46:36]Method: POST [08:46:36]URL: /json_proto [08:46:36]Method is POST - this is cgi request [08:46:36]url: /json_proto [08:46:36]query_string will be loaded in cgi processing [08:46:36]execute_cgi json_proto POST (null) [08:46:36]execute_cgi path=json_proto method=POST [08:46:36]POST find Content-Length [08:46:36]Host: 172.17.42.196:8080 [08:46:36]Content-Length: 687 [08:46:36]Content-Type: application/json [08:46:36] [08:46:36]POST finish read [08:46:36]Found Content-Length = 687 [08:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:36]execute_script... [08:46: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)3311440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:36]POST & json_proto [08:46:36]process_json_proto [08:46:36]json parsed OK: [08:46:36]protocol is kg_v1.0 [08:46:36]action value=close_receipt [08:46:36]process_action close_receipt [08:46:36]cmd_close_receipt [08:46:36]MH_GetDate [08:46:36]Write to MH i2c: F0 00 00 10 03 02 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: F0 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: F0 09 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: F0 09 00 10 03 00 ED FD 1D 67 FF C4 6B 64 0B [08:46:36]GetLastDocTimeStamp 1730018790 [08:46:36]current date 1730018797 [08:46:36]FM_GetShiftState [08:46:36]SAM_PROTO_GetShiftState [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 13 01 00 [08:46:36]Write to MH i2c: E2 08 00 11 03 80 13 01 00 00 00 00 00 91 [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0E 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0E 00 11 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 2D [08:46:36]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:46:36]wFMCommunicate OK [08:46:36]SAM_PROTO_GetShiftState done [08:46:36]FM_GetShiftState done [08:46:36]opened in 1729989505 [08:46:36]opened+sec_in_day 1730075905 [08:46:36]quantity*price = 150037 [08:46:36]sum+1 = 150039 [08:46:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 39 27.10.2024 08:46 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60507 ФПД: 179900959354503 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084637&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60507&fm=179900959354503&tin=02508201610067®Number=0000000000091622&sum=150000 [08:46:38]StoreToDocumentArchive [08:46:38]shift 532 fd 60507 [08:46:38]save to /storage/0532/doc_00060507 [08:46:38]save last doc name /storage/0532/doc_00060507 to /storage/kkm_last_doc_name [08:46:38]save OK [08:46:38]Clear old archive folders... [08:46:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:46:38]tlvbuf is 00231420 [08:46:38]SAM_PROTO_ClearQueue [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 09 00 00 [08:46:38]Write to MH i2c: E2 08 00 1E 03 80 09 00 00 00 00 00 00 93 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [08:46:38]RAPDU: 90 00 [08:46:38]wFMCommunicate OK [08:46:38]SAM_PROTO_ClearQueue done [08:46:38]KKMCreateOFDPacket [08:46:38]OFDProtocolAddRootSTLVToBuf [08:46:38]FM_MakeSignedData [08:46:38]FM_MakeSignedData [08:46:38]SAM_PROTO_SignData [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 0D 01 02 [08:46:38]Write to MH i2c: E2 08 00 1F 03 80 0D 01 02 00 00 00 00 9B [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [08:46:38]RAPDU: 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=255 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 ED FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5B EC 00 00 35 04 06 00 [08:46:38]Write to MH i2c: E2 02 01 20 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 ED FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5B EC 00 00 35 04 06 00 00 00 70 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:38]Read from MH i2c: E2 03 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [08:46:38]RAPDU: 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=11 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 0D 02 02 06 A3 9E 74 C6 EE 87 [08:46:38]Write to MH i2c: E2 0E 00 21 03 80 0D 02 02 06 00 A3 9E 74 C6 EE 87 00 00 9A [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [08:46:38]RAPDU: 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 0D 03 02 [08:46:38]Write to MH i2c: E2 08 00 22 03 80 0D 03 02 00 00 00 00 A0 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 0B 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 0B 00 22 03 00 30 78 4C 2B C8 B5 0A 23 90 00 6A [08:46:38]RAPDU: 30 78 4C 2B C8 B5 0A 23 90 00 [08:46:38]wFMCommunicate OK [08:46:38]SAM_PROTO_SignData done [08:46:38]FM_MakeSignedData done [08:46:38]CreateOFDProtocolMessage [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 11 00 00 [08:46:38]Write to MH i2c: E2 08 00 23 03 80 11 00 00 00 00 00 00 A0 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 17 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 17 00 23 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F7 [08:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:46:38]wFMCommunicate OK [08:46:38]CreateOFDProtocolMessage done [08:46:38]OFDSenderStorePacket 60507 [08:46:38]StoreOFDPacket docnum=60507 [08:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 32 70 08 01 B7 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 ED FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5B EC 00 00 35 04 06 00 A3 9E 74 C6 EE 87 30 78 4C 2B C8 B5 0A 23 [08:46:38]CheckFolder [08:46:38]dirname=/storage/ofd_packets [08:46:38]CheckFolder done [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00060507 [08:46:38]NVStorageSaveData ofd_packets/00060507 [08:46:38]File name is /storage/ofd_packets/00060507 [08:46:38]Write 302 bytes [08:46:38]NVStorageSaveData done [08:46:38]OFDSenderStorePacket done [08:46:38]KKMCreateOFDPacket done [08:46:38]NVStorageSaveData kkm_last_timestamp [08:46:38]File name is /storage/kkm_last_timestamp [08:46:38]Write 4 bytes [08:46:38]NVStorageSaveData done [08:46:38]ExternCall_PrintAddStr [08:46:38]wPrintStart [08:46:38]Write to MH i2c: 01 00 00 24 03 27 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 24 03 00 00 00 00 00 FF 0F 3C [08:46:38]RasterBufferAndPrint [08:46:38]line Счет N : (1)3311440 [08:46:38]line ИНН: 02508201610067 [08:46:38]line Контрольно-Кассовый Чек [08:46:38]line ПРОДАЖА [08:46:38]line ТРК (МРК, ГНК) : 5 [08:46:38]line Товар: 2710194210 [08:46:38]line ДТ(л)-К-5 [08:46:38]line 19.690 * 76.20 [08:46:38]line = 1500.38 [08:46:38]line НДС 12% НСП 1% [08:46:38]line > о реализуемом товаре [08:46:38]line ОКРУГЛЕНИЕ: -0.38 [08:46:38]line ИТОГО: 1500.00 [08:46:38]line Внесено: 1500.00 [08:46:38]line СДАЧА: 0.00 [08:46:38]line НСП 1% : 13.28 [08:46:38]line НДС 12% : 159.33 [08:46:38]line Наличными: 1500.00 [08:46:38]line Безнал.: 0.00 [08:46:38]line Место: АЗС № 87 "Партнер Нефть" [08:46:38]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:46:38]line СНО: Общий режим [08:46:38]line Чек 39 27.10.2024 08:46 [08:46:38]line Смена: 532 ФФД: 1.0 [08:46:38]line ЗНМ: 0300000084 [08:46:38]line РНМ: 0000000000091622 [08:46:38]line Версия ККМ: 001 [08:46:38]line ФМ: 0000000000874674 [08:46:38]line ФД: 60507 [08:46:38]line ФПД: 179900959354503 [08:46:38]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084637&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60507&fm=179900959354503&tin=02508201610067®Number=0000000000091622&sum=150000 [08:46:38]OFD Sender: Processing packet 60507 [packets to send 30, broken 29] [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00060507 [08:46:38]OFD Sender: To server: pG, [08:46:38]CommunicateWithHost lk.salyk.kg:30040 [08:46:38]ConnectInit lk.salyk.kg [08:46:38]written 0, free lines is 4095 [08:46:38]Connected sock=10 [08:46: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 36 37 34 10 01 00 00 32 70 08 01 B7 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 ED FD 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5B EC 00 00 35 04 06 00 A3 9E 74 C6 EE 87 30 78 4C 2B C8 B5 0A 23 [08:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 46 48 47 00 50 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5B EC 00 00 F4 03 04 00 D5 A3 1D 67 B6 04 01 00 00 70 B1 72 53 87 23 11 40 [08:46:38]CommunicateWithHost err = 0 [08:46:38]CheckOFDResponse [08:46:38]1017 (14) - 77093643461234 [08:46:38]1041 (16) - 0000000000874674 [08:46:38]1040 (4) - 60507 [08:46:38]1012 (4) - 27.10.2024 02:22 [08:46:38]1206 (1) - 0 [08:46:38]OFD Sender: Remove packet 60507 [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00060507 [08:46:38]NVStorageDeleteData [08:46:39]Write to MH i2c: 01 00 00 4F 03 52 [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 07 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 E8 0C 4D [08:46:39]RasterBufferAndPrint [08:46:39]line [08:46:39]line [08:46:39]line [08:46:39]line [08:46:39]line [08:46:39]written 0, free lines is 3314 [08:46:39]MH_Cut [08:46:39]Write to MH i2c: D1 01 00 56 03 01 2B [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: D1 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: D1 01 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: D1 01 00 56 03 00 2A [08:46:39]Write to MH i2c: 01 00 00 57 03 5A [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]OFD Sender: No OFD packet to send [08:46:39]*** Cut start [08:46:39]*** Partial cut [08:46:39]*** CUTSNS_PIN = 1 [08:46:39]*** CUTSNS_PIN = 0 [08:46:40]*** Brake cut motor [08:46:40]Read from MH i2c: 01 [08:46:40]MH_I2C_Read... [08:46:40]*** Stop cut motor [08:46:40]*** Cut end [08:46:40]Read from MH i2c: 01 07 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [08:46:40]process_action close_receipt done [08:46:40]requested_data is exist [08:46:40]produce_requested_data [08:46:40]requested_item fm.sn is exist - process it [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 11 00 00 [08:46:40]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 17 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2C [08:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:46:40]wFMCommunicate OK [08:46:40]requested_item fd.num is exist - process it [08:46:40]SAM_PROTO_GetFieldsCounters [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 13 00 00 [08:46:40]Write to MH i2c: E2 08 00 59 03 80 13 00 00 00 00 00 00 D8 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 59 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [08:46: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetFieldsCounters done [08:46:40]requested_item shift.num is exist - process it [08:46:40]requested_item shift.opened is exist - process it [08:46:40]req_shift_opened [08:46:40]FM_GetShiftState [08:46:40]SAM_PROTO_GetShiftState [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 13 01 00 [08:46:40]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 0E 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 76 [08:46:40]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetShiftState done [08:46:40]FM_GetShiftState done [08:46:40]req_shift_opened done [08:46:40]requested_item shift.open_date is exist - process it [08:46:40]req_shift_open_date [08:46:40]req_shift_open_date done [08:46:40]produce_requested_data done [08:46:40]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60507,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:46:40]process_action_free close_receipt [08:46:40]json_value_free [08:46:40]json_value_free done [08:46:40]process_json_proto returns [08:46:40]Send response to host [08:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60507,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:46:40]free response buf [08:46:40]execute_script done [08:46:40]execute_script returns [08:46:40]free content buf [08:46:40]Sock 7.Close socket [08:46:40]Sock 7.Thread stoped [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:20]accept exits with 9 [08:51:20]New connection [08:51:20]New thread 3067219300 created [08:51:20]Thread 3067362660 joined [08:51:20]Waiting for new connection... [08:51:20] Sock 9.Parse request [08:51:20]Sock 9.Check first char [08:51:20]Sock 9.First char is OK [08:51:20]request: POST /json_proto HTTP/1.0 [08:51:20]Method: POST [08:51:20]URL: /json_proto [08:51:20]Method is POST - this is cgi request [08:51:20]url: /json_proto [08:51:20]query_string will be loaded in cgi processing [08:51:20]execute_cgi json_proto POST (null) [08:51:20]execute_cgi path=json_proto method=POST [08:51:20]POST find Content-Length [08:51:20]Host: 172.17.42.196:8080 [08:51:20]Content-Length: 694 [08:51:20]Content-Type: application/json [08:51:20] [08:51:20]POST finish read [08:51:20]Found Content-Length = 694 [08:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200149", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:20]execute_script... [08:51:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200149", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:20]POST & json_proto [08:51:20]process_json_proto [08:51:20]json parsed OK: [08:51:20]protocol is kg_v1.0 [08:51:20]action value=close_receipt [08:51:20]process_action close_receipt [08:51:20]cmd_close_receipt [08:51:20]MH_GetDate [08:51:20]Write to MH i2c: F0 00 00 5B 03 4D [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: F0 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: F0 09 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: F0 09 00 5B 03 00 08 FF 1D 67 FF C4 6B 64 73 [08:51:20]GetLastDocTimeStamp 1730018797 [08:51:20]current date 1730019080 [08:51:20]FM_GetShiftState [08:51:20]SAM_PROTO_GetShiftState [08:51:20]wFMCommunicate request_size=4 [08:51:20]MH_SAM_APDU [08:51:20]CAPDU: 80 13 01 00 [08:51:20]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [08:51:20]Write i2c OK [08:51:20]MH_I2C_Read... [08:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:20]Read from MH i2c: E2 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0E 00 [08:51:20]MH_I2C_Read... [08:51:20]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 78 [08:51:20]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:51:20]wFMCommunicate OK [08:51:20]SAM_PROTO_GetShiftState done [08:51:20]FM_GetShiftState done [08:51:20]opened in 1729989505 [08:51:20]opened+sec_in_day 1730075905 [08:51:20]quantity*price = 6500 [08:51:20]sum+1 = 6501 [08:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 40 27.10.2024 08:51 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60508 ФПД: 49903755280867 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085120&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60508&fm=49903755280867&tin=02508201610067®Number=0000000000091622&sum=6500 0 [08:51:21]StoreToDocumentArchive [08:51:21]shift 532 fd 60508 [08:51:21]save to /storage/0532/doc_00060508 [08:51:21]save last doc name /storage/0532/doc_00060508 to /storage/kkm_last_doc_name [08:51:21]save OK [08:51:21]Clear old archive folders... [08:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=297 [08:51:21]tlvbuf is 00231AB0 [08:51:21]SAM_PROTO_ClearQueue [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 09 00 00 [08:51:21]Write to MH i2c: E2 08 00 69 03 80 09 00 00 00 00 00 00 DE [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [08:51:21]RAPDU: 90 00 [08:51:21]wFMCommunicate OK [08:51:21]SAM_PROTO_ClearQueue done [08:51:21]KKMCreateOFDPacket [08:51:21]OFDProtocolAddRootSTLVToBuf [08:51:21]FM_MakeSignedData [08:51:21]FM_MakeSignedData [08:51:21]SAM_PROTO_SignData [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 0D 01 02 [08:51:21]Write to MH i2c: E2 08 00 6A 03 80 0D 01 02 00 00 00 00 E6 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [08:51:21]RAPDU: 90 00 [08:51:21]wFMCommunicate OK [08:51:21]wFMCommunicate request_size=255 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 08 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [08:51:21]Write to MH i2c: E2 02 01 6B 03 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 08 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 AA [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [08:51:21]RAPDU: 90 00 [08:51:21]wFMCommunicate OK [08:51:21]wFMCommunicate request_size=56 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5C EC 00 00 35 04 06 00 2D 63 1F 9B 41 E3 [08:51:21]Write to MH i2c: E2 3B 00 6C 03 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5C EC 00 00 35 04 06 00 2D 63 1F 9B 41 E3 00 00 29 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [08:51:21]RAPDU: 90 00 [08:51:21]wFMCommunicate OK [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 0D 03 02 [08:51:21]Write to MH i2c: E2 08 00 6D 03 80 0D 03 02 00 00 00 00 EB [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 0B 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 0B 00 6D 03 00 18 67 64 28 09 0A 89 7C 90 00 0F [08:51:21]RAPDU: 18 67 64 28 09 0A 89 7C 90 00 [08:51:21]wFMCommunicate OK [08:51:21]SAM_PROTO_SignData done [08:51:21]FM_MakeSignedData done [08:51:21]CreateOFDProtocolMessage [08:51:21]wFMCommunicate request_size=4 [08:51:21]MH_SAM_APDU [08:51:21]CAPDU: 80 11 00 00 [08:51:21]Write to MH i2c: E2 08 00 6E 03 80 11 00 00 00 00 00 00 EB [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:21]Read from MH i2c: E2 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 17 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: E2 17 00 6E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 42 [08:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:51:21]wFMCommunicate OK [08:51:21]CreateOFDProtocolMessage done [08:51:21]OFDSenderStorePacket 60508 [08:51:21]StoreOFDPacket docnum=60508 [08:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3D 01 00 00 12 5F 35 01 F0 40 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 08 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5C EC 00 00 35 04 06 00 2D 63 1F 9B 41 E3 18 67 64 28 09 0A 89 7C [08:51:21]CheckFolder [08:51:21]dirname=/storage/ofd_packets [08:51:21]CheckFolder done [08:51:21]ProducePacketName [08:51:21]name=ofd_packets/00060508 [08:51:21]NVStorageSaveData ofd_packets/00060508 [08:51:21]File name is /storage/ofd_packets/00060508 [08:51:21]Write 347 bytes [08:51:21]NVStorageSaveData done [08:51:21]OFDSenderStorePacket done [08:51:21]KKMCreateOFDPacket done [08:51:21]NVStorageSaveData kkm_last_timestamp [08:51:21]File name is /storage/kkm_last_timestamp [08:51:21]Write 4 bytes [08:51:21]NVStorageSaveData done [08:51:21]OFD Sender: Processing packet 60508 [packets to send 30, broken 29] [08:51:21]ProducePacketName [08:51:21]name=ofd_packets/00060508 [08:51:21]OFD Sender: To server: pG, [08:51:21]CommunicateWithHost lk.salyk.kg:30040 [08:51:21]ConnectInit lk.salyk.kg [08:51:21]ExternCall_PrintAddStr [08:51:21]wPrintStart [08:51:21]Write to MH i2c: 01 00 00 6F 03 72 [08:51:21]Write i2c OK [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: 01 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: 01 07 00 [08:51:21]MH_I2C_Read... [08:51:21]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [08:51:21]RasterBufferAndPrint [08:51:21]line Счет N : (3)200149 [08:51:21]line ИНН: 02508201610067 [08:51:21]line Контрольно-Кассовый Чек [08:51:21]line ПРОДАЖА [08:51:21]line Товар: 4870001571535 [08:51:21]line Вода ASU пит н.газ персик ПЭТ 0,5л [08:51:21]line 1.000 * 65.00 [08:51:21]line = 65.00 [08:51:21]line НДС 12% НСП 1% [08:51:21]line > о реализуемом товаре [08:51:21]line ИТОГО: 65.00 [08:51:21]line НСП 1% : 0.57 [08:51:21]line НДС 12% : 6.90 [08:51:21]line Наличными: 65.00 [08:51:21]line Безнал.: 0.00 [08:51:21]line Место: АЗС № 87 "Партнер Нефть" [08:51:21]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:51:21]line СНО: Общий режим [08:51:21]line Чек 40 27.10.2024 08:51 [08:51:21]line Смена: 532 ФФД: 1.0 [08:51:21]line ЗНМ: 0300000084 [08:51:21]line РНМ: 0000000000091622 [08:51:21]line Версия ККМ: 001 [08:51:22]line ФМ: 0000000000874674 [08:51:22]line ФД: 60508 [08:51:22]line ФПД: 49903755280867 [08:51:22]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085120&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60508&fm=49903755280867&tin=02508201610067®Number=0000000000091622&sum=6500 [08:51:22]line 0 [08:51:22]Connected sock=11 [08:51: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 36 37 34 3D 01 00 00 12 5F 35 01 F0 40 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 08 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 written 0, free lines is 4095 [08:51:22]37 34 36 37 34 10 04 04 00 5C EC 00 00 35 04 06 00 2D 63 1F 9B 41 E3 18 67 64 28 09 0A 89 7C [08:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F8 F6 47 00 81 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5C EC 00 00 F4 03 04 00 F0 A4 1D 67 B6 04 01 00 00 37 F0 60 FE 6C 2B 2E 4B [08:51:22]CommunicateWithHost err = 0 [08:51:22]CheckOFDResponse [08:51:22]1017 (14) - 77093643461234 [08:51:22]1041 (16) - 0000000000874674 [08:51:22]1040 (4) - 60508 [08:51:22]1012 (4) - 27.10.2024 02:26 [08:51:22]1206 (1) - 0 [08:51:22]OFD Sender: Remove packet 60508 [08:51:22]ProducePacketName [08:51:22]name=ofd_packets/00060508 [08:51:22]NVStorageDeleteData [08:51:22]Write to MH i2c: 01 00 00 98 03 9B [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: 01 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: 01 07 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 D9 0C 87 [08:51:22]RasterBufferAndPrint [08:51:22]line [08:51:22]line [08:51:22]line [08:51:22]line [08:51:22]line [08:51:22]written 0, free lines is 3296 [08:51:22]MH_Cut [08:51:22]Write to MH i2c: D1 01 00 9F 03 01 74 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: D1 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: D1 01 00 [08:51:22]MH_I2C_Read... [08:51:22]Read from MH i2c: D1 01 00 9F 03 00 73 [08:51:22]Write to MH i2c: 01 00 00 A0 03 A3 [08:51:22]Write i2c OK [08:51:22]MH_I2C_Read... [08:51:22]OFD Sender: No OFD packet to send [08:51:23]*** Cut start [08:51:23]*** Partial cut [08:51:23]*** CUTSNS_PIN = 1 [08:51:23]*** CUTSNS_PIN = 0 [08:51:23]*** Brake cut motor [08:51:23]Read from MH i2c: 01 [08:51:23]MH_I2C_Read... [08:51:23]*** Stop cut motor [08:51:23]*** Cut end [08:51:23]Read from MH i2c: 01 07 00 [08:51:23]MH_I2C_Read... [08:51:23]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [08:51:23]process_action close_receipt done [08:51:23]requested_data is exist [08:51:23]produce_requested_data [08:51:23]requested_item fm.sn is exist - process it [08:51:23]wFMCommunicate request_size=4 [08:51:23]MH_SAM_APDU [08:51:23]CAPDU: 80 11 00 00 [08:51:23]Write to MH i2c: E2 08 00 A1 03 80 11 00 00 00 00 00 00 1E [08:51:23]Write i2c OK [08:51:23]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 17 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 17 00 A1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 75 [08:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:51:24]wFMCommunicate OK [08:51:24]requested_item fd.num is exist - process it [08:51:24]SAM_PROTO_GetFieldsCounters [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 13 00 00 [08:51:24]Write to MH i2c: E2 08 00 A2 03 80 13 00 00 00 00 00 00 21 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 62 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 62 00 A2 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [08:51: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetFieldsCounters done [08:51:24]requested_item shift.num is exist - process it [08:51:24]requested_item shift.opened is exist - process it [08:51:24]req_shift_opened [08:51:24]FM_GetShiftState [08:51:24]SAM_PROTO_GetShiftState [08:51:24]wFMCommunicate request_size=4 [08:51:24]MH_SAM_APDU [08:51:24]CAPDU: 80 13 01 00 [08:51:24]Write to MH i2c: E2 08 00 A3 03 80 13 01 00 00 00 00 00 23 [08:51:24]Write i2c OK [08:51:24]MH_I2C_Read... [08:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:24]Read from MH i2c: E2 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 [08:51:24]MH_I2C_Read... [08:51:24]Read from MH i2c: E2 0E 00 A3 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 BF [08:51:24]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:51:24]wFMCommunicate OK [08:51:24]SAM_PROTO_GetShiftState done [08:51:24]FM_GetShiftState done [08:51:24]req_shift_opened done [08:51:24]requested_item shift.open_date is exist - process it [08:51:24]req_shift_open_date [08:51:24]req_shift_open_date done [08:51:24]produce_requested_data done [08:51:24]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60508,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:51:24]process_action_free close_receipt [08:51:24]json_value_free [08:51:24]json_value_free done [08:51:24]process_json_proto returns [08:51:24]Send response to host [08:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60508,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:51:24]free response buf [08:51:24]execute_script done [08:51:24]execute_script returns [08:51:24]free content buf [08:51:24]Sock 9.Close socket [08:51:24]Sock 9.Thread stoped [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:48]accept exits with 7 [08:51:48]New connection [08:51:48]New thread 3067362660 created [08:51:48]Thread 3067219300 joined [08:51:48]Waiting for new connection... [08:51:48] Sock 7.Parse request [08:51:48]Sock 7.Check first char [08:51:48]Sock 7.First char is OK [08:51:48]request: POST /json_proto HTTP/1.0 [08:51:48]Method: POST [08:51:48]URL: /json_proto [08:51:48]Method is POST - this is cgi request [08:51:48]url: /json_proto [08:51:48]query_string will be loaded in cgi processing [08:51:48]execute_cgi json_proto POST (null) [08:51:48]execute_cgi path=json_proto method=POST [08:51:48]POST find Content-Length [08:51:48]Host: 172.17.42.196:8080 [08:51:48]Content-Length: 645 [08:51:48]Content-Type: application/json [08:51:48] [08:51:48]POST finish read [08:51:48]Found Content-Length = 645 [08:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200150", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:48]execute_script... [08:51:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200150", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:48]POST & json_proto [08:51:48]process_json_proto [08:51:48]json parsed OK: [08:51:48]protocol is kg_v1.0 [08:51:48]action value=close_receipt [08:51:48]process_action close_receipt [08:51:48]cmd_close_receipt [08:51:48]MH_GetDate [08:51:48]Write to MH i2c: F0 00 00 A4 03 96 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: F0 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: F0 09 00 [08:51:48]MH_I2C_Read... [08:51:48]Read from MH i2c: F0 09 00 A4 03 00 25 FF 1D 67 FF C4 6B 64 D9 [08:51:48]GetLastDocTimeStamp 1730019080 [08:51:48]current date 1730019109 [08:51:48]FM_GetShiftState [08:51:48]SAM_PROTO_GetShiftState [08:51:48]wFMCommunicate request_size=4 [08:51:48]MH_SAM_APDU [08:51:48]CAPDU: 80 13 01 00 [08:51:48]Write to MH i2c: E2 08 00 A5 03 80 13 01 00 00 00 00 00 25 [08:51:48]Write i2c OK [08:51:48]MH_I2C_Read... [08:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:49]Read from MH i2c: E2 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 0E 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: E2 0E 00 A5 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 C1 [08:51:49]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:51:49]wFMCommunicate OK [08:51:49]SAM_PROTO_GetShiftState done [08:51:49]FM_GetShiftState done [08:51:49]opened in 1729989505 [08:51:49]opened+sec_in_day 1730075905 [08:51:49]quantity*price = 6500 [08:51:49]sum+1 = 6501 [08:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 41 27.10.2024 08:51 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60509 ФПД: 201761724891183 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085149&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60509&fm=201761724891183&tin=02508201610067®Number=0000000000091622&sum=6500 0 [08:51:50]StoreToDocumentArchive [08:51:50]shift 532 fd 60509 [08:51:50]save to /storage/0532/doc_00060509 [08:51:50]save last doc name /storage/0532/doc_00060509 to /storage/kkm_last_doc_name [08:51:50]save OK [08:51:50]Clear old archive folders... [08:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=272 [08:51:50]tlvbuf is B6E0C700 [08:51:50]SAM_PROTO_ClearQueue [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 09 00 00 [08:51:50]Write to MH i2c: E2 08 00 B2 03 80 09 00 00 00 00 00 00 27 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [08:51:50]RAPDU: 90 00 [08:51:50]wFMCommunicate OK [08:51:50]SAM_PROTO_ClearQueue done [08:51:50]KKMCreateOFDPacket [08:51:50]OFDProtocolAddRootSTLVToBuf [08:51:50]FM_MakeSignedData [08:51:50]FM_MakeSignedData [08:51:50]SAM_PROTO_SignData [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 0D 01 02 [08:51:50]Write to MH i2c: E2 08 00 B3 03 80 0D 01 02 00 00 00 00 2F [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [08:51:50]RAPDU: 90 00 [08:51:50]wFMCommunicate OK [08:51:50]wFMCommunicate request_size=255 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 25 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [08:51:50]Write to MH i2c: E2 02 01 B4 03 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 25 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5D [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [08:51:50]RAPDU: 90 00 [08:51:50]wFMCommunicate OK [08:51:50]wFMCommunicate request_size=31 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 34 10 04 04 00 5D EC 00 00 35 04 06 00 B7 80 4F F1 00 2F [08:51:50]Write to MH i2c: E2 22 00 B5 03 80 0D 02 02 1A 00 30 30 38 37 34 36 37 34 10 04 04 00 5D EC 00 00 35 04 06 00 B7 80 4F F1 00 2F 00 00 50 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [08:51:50]RAPDU: 90 00 [08:51:50]wFMCommunicate OK [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 0D 03 02 [08:51:50]Write to MH i2c: E2 08 00 B6 03 80 0D 03 02 00 00 00 00 34 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0B 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0B 00 B6 03 00 84 D7 9A 78 6A 95 87 DF 90 00 07 [08:51:50]RAPDU: 84 D7 9A 78 6A 95 87 DF 90 00 [08:51:50]wFMCommunicate OK [08:51:50]SAM_PROTO_SignData done [08:51:50]FM_MakeSignedData done [08:51:50]CreateOFDProtocolMessage [08:51:50]wFMCommunicate request_size=4 [08:51:50]MH_SAM_APDU [08:51:50]CAPDU: 80 11 00 00 [08:51:50]Write to MH i2c: E2 08 00 B7 03 80 11 00 00 00 00 00 00 34 [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 17 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 17 00 B7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 8B [08:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:51:50]wFMCommunicate OK [08:51:50]CreateOFDProtocolMessage done [08:51:50]OFDSenderStorePacket 60509 [08:51:50]StoreOFDPacket docnum=60509 [08:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 24 01 00 00 98 88 1C 01 CD 8B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 25 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5D EC 00 00 35 04 06 00 B7 80 4F F1 00 2F 84 D7 9A 78 6A 95 87 DF [08:51:50]CheckFolder [08:51:50]dirname=/storage/ofd_packets [08:51:50]CheckFolder done [08:51:50]ProducePacketName [08:51:50]name=ofd_packets/00060509 [08:51:50]NVStorageSaveData ofd_packets/00060509 [08:51:50]File name is /storage/ofd_packets/00060509 [08:51:50]Write 322 bytes [08:51:50]NVStorageSaveData done [08:51:50]OFDSenderStorePacket done [08:51:50]KKMCreateOFDPacket done [08:51:50]NVStorageSaveData kkm_last_timestamp [08:51:50]File name is /storage/kkm_last_timestamp [08:51:50]Write 4 bytes [08:51:50]NVStorageSaveData done [08:51:50]ExternCall_PrintAddStr [08:51:50]wPrintStart [08:51:50]Write to MH i2c: 01 00 00 B8 03 BB [08:51:50]Write i2c OK [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: 01 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: 01 07 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: 01 07 00 B8 03 00 00 00 00 00 FF 0F D0 [08:51:50]RasterBufferAndPrint [08:51:50]line Счет N : (3)200150 [08:51:50]line ИНН: 02508201610067 [08:51:50]line Контрольно-Кассовый Чек [08:51:50]line ПРОДАЖА [08:51:50]line Товар: 47011656 [08:51:50]line Водка Пшеничная 0,1л [08:51:50]line 1.000 * 65.00 [08:51:50]line = 65.00 [08:51:50]line НДС 12% НСП 1% [08:51:50]line > о реализуемом товаре [08:51:50]line ИТОГО: 65.00 [08:51:50]line НСП 1% : 0.57 [08:51:50]line НДС 12% : 6.90 [08:51:50]line Наличными: 65.00 [08:51:50]line Безнал.: 0.00 [08:51:50]line Место: АЗС № 87 "Партнер Нефть" [08:51:50]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:51:50]line СНО: Общий режим [08:51:50]line Чек 41 27.10.2024 08:51 [08:51:50]line Смена: 532 ФФД: 1.0 [08:51:50]line ЗНМ: 0300000084 [08:51:50]line РНМ: 0000000000091622 [08:51:50]line Версия ККМ: 001 [08:51:50]line ФМ: 0000000000874674 [08:51:50]line ФД: 60509 [08:51:50]line ФПД: 201761724891183 [08:51:51]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085149&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60509&fm=201761724891183&tin=02508201610067®Number=0000000000091622&sum=6500 [08:51:51]line 0 [08:51:51]OFD Sender: Processing packet 60509 [packets to send 30, broken 29] [08:51:51]ProducePacketName [08:51:51]name=ofd_packets/00060509 [08:51:51]OFD Sender: To server: pG, [08:51:51]CommunicateWithHost lk.salyk.kg:30040 [08:51:51]ConnectInit lk.salyk.kg [08:51:51]written 0, free lines is 4095 [08:51:51]Connected sock=10 [08:51: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 36 37 34 24 01 00 00 98 88 1C 01 CD 8B 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 25 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5D EC 00 00 35 04 06 00 B7 80 4F F1 00 2F 84 D7 9A 78 6A 95 87 DF [08:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E0 95 47 00 44 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 36 37 34 10 04 04 00 5D EC 00 00 F4 03 04 00 0D A5 1D 67 B6 04 01 00 00 73 FF 4E EE 6E 0F 5A F6 [08:51:51]CommunicateWithHost err = 0 [08:51:51]CheckOFDResponse [08:51:51]1017 (14) - 77093643461234 [08:51:51]1041 (16) - 0000000000874674 [08:51:51]1040 (4) - 60509 [08:51:51]1012 (4) - 27.10.2024 02:27 [08:51:51]1206 (1) - 0 [08:51:51]OFD Sender: Remove packet 60509 [08:51:51]ProducePacketName [08:51:51]name=ofd_packets/00060509 [08:51:51]NVStorageDeleteData [08:51:51]Write to MH i2c: 01 00 00 E0 03 E3 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 07 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 F8 0C EE [08:51:51]RasterBufferAndPrint [08:51:51]line [08:51:51]line [08:51:51]line [08:51:51]line [08:51:51]line [08:51:51]written 0, free lines is 3327 [08:51:51]MH_Cut [08:51:51]Write to MH i2c: D1 01 00 E7 03 01 BC [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: D1 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: D1 01 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: D1 01 00 E7 03 00 BB [08:51:51]Write to MH i2c: 01 00 00 E8 03 EB [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]OFD Sender: No OFD packet to send [08:51:52]*** Cut start [08:51:52]*** Partial cut [08:51:52]*** CUTSNS_PIN = 1 [08:51:52]*** CUTSNS_PIN = 0 [08:51:52]*** Brake cut motor [08:51:52]Read from MH i2c: 01 [08:51:52]MH_I2C_Read... [08:51:52]*** Stop cut motor [08:51:52]*** Cut end [08:51:52]Read from MH i2c: 01 07 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 FF 0F 00 [08:51:52]process_action close_receipt done [08:51:52]requested_data is exist [08:51:52]produce_requested_data [08:51:52]requested_item fm.sn is exist - process it [08:51:52]wFMCommunicate request_size=4 [08:51:52]MH_SAM_APDU [08:51:52]CAPDU: 80 11 00 00 [08:51:52]Write to MH i2c: E2 08 00 E9 03 80 11 00 00 00 00 00 00 66 [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:52]Read from MH i2c: E2 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 17 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: E2 17 00 E9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BD [08:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:51:52]wFMCommunicate OK [08:51:52]requested_item fd.num is exist - process it [08:51:52]SAM_PROTO_GetFieldsCounters [08:51:52]wFMCommunicate request_size=4 [08:51:52]MH_SAM_APDU [08:51:52]CAPDU: 80 13 00 00 [08:51:52]Write to MH i2c: E2 08 00 EA 03 80 13 00 00 00 00 00 00 69 [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 62 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 62 00 EA 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [08:51: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:53]wFMCommunicate OK [08:51:53]SAM_PROTO_GetFieldsCounters done [08:51:53]requested_item shift.num is exist - process it [08:51:53]requested_item shift.opened is exist - process it [08:51:53]req_shift_opened [08:51:53]FM_GetShiftState [08:51:53]SAM_PROTO_GetShiftState [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 13 01 00 [08:51:53]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 0E 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 07 [08:51:53]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:51:53]wFMCommunicate OK [08:51:53]SAM_PROTO_GetShiftState done [08:51:53]FM_GetShiftState done [08:51:53]req_shift_opened done [08:51:53]requested_item shift.open_date is exist - process it [08:51:53]req_shift_open_date [08:51:53]req_shift_open_date done [08:51:53]produce_requested_data done [08:51:53]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60509,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:51:53]process_action_free close_receipt [08:51:53]json_value_free [08:51:53]json_value_free done [08:51:53]process_json_proto returns [08:51:53]Send response to host [08:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60509,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:51:53]free response buf [08:51:53]execute_script done [08:51:53]execute_script returns [08:51:53]free content buf [08:51:53]Sock 7.Close socket [08:51:53]Sock 7.Thread stoped [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:40]accept exits with 9 [08:52:40]New connection [08:52:40]New thread 3067219300 created [08:52:40]Thread 3067362660 joined [08:52:40]Waiting for new connection... [08:52:40] Sock 9.Parse request [08:52:40]Sock 9.Check first char [08:52:40]Sock 9.First char is OK [08:52:40]request: POST /json_proto HTTP/1.0 [08:52:40]Method: POST [08:52:40]URL: /json_proto [08:52:40]Method is POST - this is cgi request [08:52:40]url: /json_proto [08:52:40]query_string will be loaded in cgi processing [08:52:40]execute_cgi json_proto POST (null) [08:52:40]execute_cgi path=json_proto method=POST [08:52:40]POST find Content-Length [08:52:40]Host: 172.17.42.196:8080 [08:52:40]Content-Length: 820 [08:52:40]Content-Type: application/json [08:52:40] [08:52:40]POST finish read [08:52:40]Found Content-Length = 820 [08:52:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:40]execute_script... [08:52:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:40]POST & json_proto [08:52:40]process_json_proto [08:52:40]json parsed OK: [08:52:40]protocol is kg_v1.0 [08:52:40]action value=close_receipt [08:52:40]process_action close_receipt [08:52:40]cmd_close_receipt [08:52:40]MH_GetDate [08:52:40]Write to MH i2c: F0 00 00 EC 03 DE [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 09 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: F0 09 00 EC 03 00 58 FF 1D 67 FF C4 6B 64 54 [08:52:40]GetLastDocTimeStamp 1730019109 [08:52:40]current date 1730019160 [08:52:40]FM_GetShiftState [08:52:40]SAM_PROTO_GetShiftState [08:52:40]wFMCommunicate request_size=4 [08:52:40]MH_SAM_APDU [08:52:40]CAPDU: 80 13 01 00 [08:52:40]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [08:52:40]Write i2c OK [08:52:40]MH_I2C_Read... [08:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:40]Read from MH i2c: E2 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 [08:52:40]MH_I2C_Read... [08:52:40]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 09 [08:52:40]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:52:40]wFMCommunicate OK [08:52:40]SAM_PROTO_GetShiftState done [08:52:40]FM_GetShiftState done [08:52:40]opened in 1729989505 [08:52:40]opened+sec_in_day 1730075905 [08:52:40]quantity*price = 150032 [08:52:40]sum+1 = 150033 [08:52:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 42 27.10.2024 08:52 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874674 ФД: 60510 ФПД: 44749950426287 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085240&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60510&fm=44749950426287&tin=02508201610067®Number=0000000000091622&sum=150032 [08:52:41]StoreToDocumentArchive [08:52:41]shift 532 fd 60510 [08:52:41]save to /storage/0532/doc_00060510 [08:52:41]save last doc name /storage/0532/doc_00060510 to /storage/kkm_last_doc_name [08:52:41]save OK [08:52:41]Clear old archive folders... [08:52:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:52:41]tlvbuf is B6E0C140 [08:52:41]SAM_PROTO_ClearQueue [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 09 00 00 [08:52:41]Write to MH i2c: E2 08 00 FA 03 80 09 00 00 00 00 00 00 6F [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_ClearQueue done [08:52:41]KKMCreateOFDPacket [08:52:41]OFDProtocolAddRootSTLVToBuf [08:52:41]FM_MakeSignedData [08:52:41]FM_MakeSignedData [08:52:41]SAM_PROTO_SignData [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 01 02 [08:52:41]Write to MH i2c: E2 08 00 FB 03 80 0D 01 02 00 00 00 00 77 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=255 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 58 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5E EC 00 00 35 04 06 00 28 [08:52:41]Write to MH i2c: E2 02 01 FC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 58 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5E EC 00 00 35 04 06 00 28 00 00 35 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=10 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 02 02 05 B3 28 E6 1C AF [08:52:41]Write to MH i2c: E2 0D 00 FD 03 80 0D 02 02 05 00 B3 28 E6 1C AF 00 00 10 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [08:52:41]RAPDU: 90 00 [08:52:41]wFMCommunicate OK [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 0D 03 02 [08:52:41]Write to MH i2c: E2 08 00 FE 03 80 0D 03 02 00 00 00 00 7C [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0B 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 0B 00 FE 03 00 70 78 44 61 4D 7B 39 6E 90 00 79 [08:52:41]RAPDU: 70 78 44 61 4D 7B 39 6E 90 00 [08:52:41]wFMCommunicate OK [08:52:41]SAM_PROTO_SignData done [08:52:41]FM_MakeSignedData done [08:52:41]CreateOFDProtocolMessage [08:52:41]wFMCommunicate request_size=4 [08:52:41]MH_SAM_APDU [08:52:41]CAPDU: 80 11 00 00 [08:52:41]Write to MH i2c: E2 08 00 FF 03 80 11 00 00 00 00 00 00 7C [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:41]Read from MH i2c: E2 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: E2 17 00 FF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D3 [08:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:52:41]wFMCommunicate OK [08:52:41]CreateOFDProtocolMessage done [08:52:41]OFDSenderStorePacket 60510 [08:52:41]StoreOFDPacket docnum=60510 [08:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 8F EE 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 58 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5E EC 00 00 35 04 06 00 28 B3 28 E6 1C AF 70 78 44 61 4D 7B 39 6E [08:52:41]CheckFolder [08:52:41]dirname=/storage/ofd_packets [08:52:41]CheckFolder done [08:52:41]ProducePacketName [08:52:41]name=ofd_packets/00060510 [08:52:41]NVStorageSaveData ofd_packets/00060510 [08:52:41]File name is /storage/ofd_packets/00060510 [08:52:41]Write 301 bytes [08:52:41]NVStorageSaveData done [08:52:41]OFDSenderStorePacket done [08:52:41]KKMCreateOFDPacket done [08:52:41]NVStorageSaveData kkm_last_timestamp [08:52:41]File name is /storage/kkm_last_timestamp [08:52:41]Write 4 bytes [08:52:41]NVStorageSaveData done [08:52:41]ExternCall_PrintAddStr [08:52:41]wPrintStart [08:52:41]Write to MH i2c: 01 00 00 00 04 04 [08:52:41]Write i2c OK [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 [08:52:41]MH_I2C_Read... [08:52:41]Read from MH i2c: 01 07 00 00 04 00 00 00 00 00 FF 0F 19 [08:52:41]RasterBufferAndPrint [08:52:41]line Счет N : (1)3311445 [08:52:41]line ИНН: 02508201610067 [08:52:41]line Контрольно-Кассовый Чек [08:52:41]line ПРОДАЖА [08:52:41]line ТРК (МРК, ГНК) : 43 [08:52:41]line Товар: 2710124500 [08:52:41]line Аи-95-К-3 [08:52:41]line 20.220 * 74.20 [08:52:41]line = 1500.32 [08:52:41]line НДС 12% НСП 1% [08:52:41]line > о реализуемом товаре [08:52:41]line ИТОГО: 1500.32 [08:52:41]line НСП 1% : 13.28 [08:52:41]line НДС 12% : 159.33 [08:52:41]line Наличными: 0.00 [08:52:41]line Безнал.: 1500.32 [08:52:41]line Место: АЗС № 87 "Партнер Нефть" [08:52:41]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [08:52:41]line СНО: Общий режим [08:52:41]line Чек 42 27.10.2024 08:52 [08:52:41]line Смена: 532 ФФД: 1.0 [08:52:41]line ЗНМ: 0300000084 [08:52:41]line РНМ: 0000000000091622 [08:52:41]line Версия ККМ: 001 [08:52:41]line Платежная система: Бакай Банк [08:52:41]line ФМ: 0000000000874674 [08:52:41]line ФД: 60510 [08:52:41]line ФПД: 44749950426287 [08:52:41]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085240&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60510&fm=44749950426287&tin=02508201610067®Number=0000000000091622&sum=150032 [08:52:42]written 0, free lines is 4095 [08:52:42]OFD Sender: Processing packet 60510 [packets to send 30, broken 29] [08:52:42]ProducePacketName [08:52:42]name=ofd_packets/00060510 [08:52:42]OFD Sender: To server: pG, [08:52:42]CommunicateWithHost lk.salyk.kg:30040 [08:52:42]ConnectInit lk.salyk.kg [08:52:42]Connected sock=10 [08:52:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 8F EE 07 01 24 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 58 FF 1D 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5E EC 00 00 35 04 06 00 28 B3 28 E6 1C AF 70 78 44 61 4D 7B 39 6E [08:52:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 77 04 47 00 A0 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 36 37 34 10 04 04 00 5E EC 00 00 F4 03 04 00 40 A5 1D 67 B6 04 01 00 00 5C 8A EB FD 22 C5 8B 59 [08:52:42]CommunicateWithHost err = 0 [08:52:42]CheckOFDResponse [08:52:42]1017 (14) - 77093643461234 [08:52:42]1041 (16) - 0000000000874674 [08:52:42]1040 (4) - 60510 [08:52:42]1012 (4) - 27.10.2024 02:28 [08:52:42]1206 (1) - 0 [08:52:42]OFD Sender: Remove packet 60510 [08:52:42]ProducePacketName [08:52:42]name=ofd_packets/00060510 [08:52:42]NVStorageDeleteData [08:52:42]Write to MH i2c: 01 00 00 2A 04 2E [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 07 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FC 0C 3D [08:52:42]RasterBufferAndPrint [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]line [08:52:42]written 0, free lines is 3330 [08:52:42]MH_Cut [08:52:42]Write to MH i2c: D1 01 00 31 04 01 07 [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 01 00 [08:52:42]MH_I2C_Read... [08:52:42]Read from MH i2c: D1 01 00 31 04 00 06 [08:52:42]Write to MH i2c: 01 00 00 32 04 36 [08:52:42]Write i2c OK [08:52:42]MH_I2C_Read... [08:52:42]OFD Sender: No OFD packet to send [08:52:43]*** Cut start [08:52:43]*** Partial cut [08:52:43]*** CUTSNS_PIN = 1 [08:52:43]*** CUTSNS_PIN = 0 [08:52:43]*** Brake cut motor [08:52:44]Read from MH i2c: 01 [08:52:44]MH_I2C_Read... [08:52:44]*** Stop cut motor [08:52:44]*** Cut end [08:52:44]Read from MH i2c: 01 07 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [08:52:44]process_action close_receipt done [08:52:44]requested_data is exist [08:52:44]produce_requested_data [08:52:44]requested_item fm.sn is exist - process it [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 11 00 00 [08:52:44]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 17 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 08 [08:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [08:52:44]wFMCommunicate OK [08:52:44]requested_item fd.num is exist - process it [08:52:44]SAM_PROTO_GetFieldsCounters [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 13 00 00 [08:52:44]Write to MH i2c: E2 08 00 34 04 80 13 00 00 00 00 00 00 B4 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 62 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 62 00 34 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [08:52:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:44]wFMCommunicate OK [08:52:44]SAM_PROTO_GetFieldsCounters done [08:52:44]requested_item shift.num is exist - process it [08:52:44]requested_item shift.opened is exist - process it [08:52:44]req_shift_opened [08:52:44]FM_GetShiftState [08:52:44]SAM_PROTO_GetShiftState [08:52:44]wFMCommunicate request_size=4 [08:52:44]MH_SAM_APDU [08:52:44]CAPDU: 80 13 01 00 [08:52:44]Write to MH i2c: E2 08 00 35 04 80 13 01 00 00 00 00 00 B6 [08:52:44]Write i2c OK [08:52:44]MH_I2C_Read... [08:52:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:44]Read from MH i2c: E2 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 0E 00 [08:52:44]MH_I2C_Read... [08:52:44]Read from MH i2c: E2 0E 00 35 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 52 [08:52:44]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [08:52:44]wFMCommunicate OK [08:52:44]SAM_PROTO_GetShiftState done [08:52:44]FM_GetShiftState done [08:52:44]req_shift_opened done [08:52:44]requested_item shift.open_date is exist - process it [08:52:44]req_shift_open_date [08:52:44]req_shift_open_date done [08:52:44]produce_requested_data done [08:52:44]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60510,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [08:52:44]process_action_free close_receipt [08:52:44]json_value_free [08:52:44]json_value_free done [08:52:44]process_json_proto returns [08:52:44]Send response to host [08:52:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60510,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [08:52:44]free response buf [08:52:44]execute_script done [08:52:44]execute_script returns [08:52:44]free content buf [08:52:44]Sock 9.Close socket [08:52:44]Sock 9.Thread stoped [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:20]accept exits with 7 [09:02:20]New connection [09:02:20]New thread 3067362660 created [09:02:20]Thread 3067219300 joined [09:02:20]Waiting for new connection... [09:02:20] Sock 7.Parse request [09:02:20]Sock 7.Check first char [09:02:20]Sock 7.First char is OK [09:02:20]request: POST /json_proto HTTP/1.0 [09:02:20]Method: POST [09:02:20]URL: /json_proto [09:02:20]Method is POST - this is cgi request [09:02:20]url: /json_proto [09:02:20]query_string will be loaded in cgi processing [09:02:20]execute_cgi json_proto POST (null) [09:02:20]execute_cgi path=json_proto method=POST [09:02:20]POST find Content-Length [09:02:20]Host: 172.17.42.196:8080 [09:02:20]Content-Length: 683 [09:02:20]Content-Type: application/json [09:02:20] [09:02:20]POST finish read [09:02:20]Found Content-Length = 683 [09:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:20]execute_script... [09:02: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)3311457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:20]POST & json_proto [09:02:20]process_json_proto [09:02:20]json parsed OK: [09:02:20]protocol is kg_v1.0 [09:02:20]action value=close_receipt [09:02:20]process_action close_receipt [09:02:20]cmd_close_receipt [09:02:20]MH_GetDate [09:02:20]Write to MH i2c: F0 00 00 36 04 29 [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: F0 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: F0 09 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: F0 09 00 36 04 00 9C 01 1E 67 FF C4 6B 64 E6 [09:02:20]GetLastDocTimeStamp 1730019160 [09:02:20]current date 1730019740 [09:02:20]FM_GetShiftState [09:02:20]SAM_PROTO_GetShiftState [09:02:20]wFMCommunicate request_size=4 [09:02:20]MH_SAM_APDU [09:02:20]CAPDU: 80 13 01 00 [09:02:20]Write to MH i2c: E2 08 00 37 04 80 13 01 00 00 00 00 00 B8 [09:02:20]Write i2c OK [09:02:20]MH_I2C_Read... [09:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:20]Read from MH i2c: E2 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 0E 00 [09:02:20]MH_I2C_Read... [09:02:20]Read from MH i2c: E2 0E 00 37 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 54 [09:02:20]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:02:20]wFMCommunicate OK [09:02:20]SAM_PROTO_GetShiftState done [09:02:20]FM_GetShiftState done [09:02:20]opened in 1729989505 [09:02:20]opened+sec_in_day 1730075905 [09:02:20]quantity*price = 100015 [09:02:20]sum+1 = 100017 [09:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 43 27.10.2024 09:02 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60511 ФПД: 78504372362994 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090220&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60511&fm=78504372362994&tin=02508201610067®Number=0000000000091622&sum=100000 [09:02:21]StoreToDocumentArchive [09:02:21]shift 532 fd 60511 [09:02:21]save to /storage/0532/doc_00060511 [09:02:21]save last doc name /storage/0532/doc_00060511 to /storage/kkm_last_doc_name [09:02:21]save OK [09:02:21]Clear old archive folders... [09:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:21]tlvbuf is 00208E10 [09:02:21]SAM_PROTO_ClearQueue [09:02:21]wFMCommunicate request_size=4 [09:02:21]MH_SAM_APDU [09:02:21]CAPDU: 80 09 00 00 [09:02:21]Write to MH i2c: E2 08 00 44 04 80 09 00 00 00 00 00 00 BA [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:21]Read from MH i2c: E2 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 03 00 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [09:02:21]RAPDU: 90 00 [09:02:21]wFMCommunicate OK [09:02:21]SAM_PROTO_ClearQueue done [09:02:21]KKMCreateOFDPacket [09:02:21]OFDProtocolAddRootSTLVToBuf [09:02:21]FM_MakeSignedData [09:02:21]FM_MakeSignedData [09:02:21]SAM_PROTO_SignData [09:02:21]wFMCommunicate request_size=4 [09:02:21]MH_SAM_APDU [09:02:21]CAPDU: 80 0D 01 02 [09:02:21]Write to MH i2c: E2 08 00 45 04 80 0D 01 02 00 00 00 00 C2 [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:21]Read from MH i2c: E2 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 03 00 [09:02:21]MH_I2C_Read... [09:02:21]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [09:02:21]RAPDU: 90 00 [09:02:21]wFMCommunicate OK [09:02:21]wFMCommunicate request_size=255 [09:02:21]MH_SAM_APDU [09:02: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9C 01 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5F EC 00 00 35 04 06 00 47 [09:02:21]Write to MH i2c: E2 02 01 46 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9C 01 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5F EC 00 00 35 04 06 00 47 00 00 3E [09:02:21]Write i2c OK [09:02:21]MH_I2C_Read... [09:02:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [09:02:22]RAPDU: 90 00 [09:02:22]wFMCommunicate OK [09:02:22]wFMCommunicate request_size=10 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 0D 02 02 05 66 39 3A 5E F2 [09:02:22]Write to MH i2c: E2 0D 00 47 04 80 0D 02 02 05 00 66 39 3A 5E F2 00 00 F8 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 03 00 47 04 00 90 00 BF [09:02:22]RAPDU: 90 00 [09:02:22]wFMCommunicate OK [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 0D 03 02 [09:02:22]Write to MH i2c: E2 08 00 48 04 80 0D 03 02 00 00 00 00 C7 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0B 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 0B 00 48 04 00 76 49 A2 12 E0 7E 58 E2 90 00 D3 [09:02:22]RAPDU: 76 49 A2 12 E0 7E 58 E2 90 00 [09:02:22]wFMCommunicate OK [09:02:22]SAM_PROTO_SignData done [09:02:22]FM_MakeSignedData done [09:02:22]CreateOFDProtocolMessage [09:02:22]wFMCommunicate request_size=4 [09:02:22]MH_SAM_APDU [09:02:22]CAPDU: 80 11 00 00 [09:02:22]Write to MH i2c: E2 08 00 49 04 80 11 00 00 00 00 00 00 C7 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:22]Read from MH i2c: E2 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: E2 17 00 49 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 1E [09:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:02:22]wFMCommunicate OK [09:02:22]CreateOFDProtocolMessage done [09:02:22]OFDSenderStorePacket 60511 [09:02:22]StoreOFDPacket docnum=60511 [09:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 BE F8 07 01 BD 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9C 01 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5F EC 00 00 35 04 06 00 47 66 39 3A 5E F2 76 49 A2 12 E0 7E 58 E2 [09:02:22]CheckFolder [09:02:22]dirname=/storage/ofd_packets [09:02:22]CheckFolder done [09:02:22]ProducePacketName [09:02:22]name=ofd_packets/00060511 [09:02:22]NVStorageSaveData ofd_packets/00060511 [09:02:22]File name is /storage/ofd_packets/00060511 [09:02:22]Write 301 bytes [09:02:22]NVStorageSaveData done [09:02:22]OFDSenderStorePacket done [09:02:22]KKMCreateOFDPacket done [09:02:22]NVStorageSaveData kkm_last_timestamp [09:02:22]File name is /storage/kkm_last_timestamp [09:02:22]Write 4 bytes [09:02:22]NVStorageSaveData done [09:02:22]ExternCall_PrintAddStr [09:02:22]wPrintStart [09:02:22]Write to MH i2c: 01 00 00 4A 04 4E [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 4A 04 00 00 00 00 00 FF 0F 63 [09:02:22]RasterBufferAndPrint [09:02:22]line Счет N : (1)3311457 [09:02:22]line ИНН: 02508201610067 [09:02:22]line Контрольно-Кассовый Чек [09:02:22]line ПРОДАЖА [09:02:22]line ТРК (МРК, ГНК) : 32 [09:02:22]line Товар: 2710124130 [09:02:22]line Аи-92-К-4 [09:02:22]line 14.950 * 66.90 [09:02:22]line = 1000.16 [09:02:22]line НДС 12% НСП 1% [09:02:22]line > о реализуемом товаре [09:02:22]line ОКРУГЛЕНИЕ: -0.16 [09:02:22]line ИТОГО: 1000.00 [09:02:22]line Внесено: 1000.00 [09:02:22]line СДАЧА: 0.00 [09:02:22]line НСП 1% : 8.85 [09:02:22]line НДС 12% : 106.21 [09:02:22]line Наличными: 1000.00 [09:02:22]line Безнал.: 0.00 [09:02:22]line Место: АЗС № 87 "Партнер Нефть" [09:02:22]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:02:22]line СНО: Общий режим [09:02:22]line Чек 43 27.10.2024 09:02 [09:02:22]line Смена: 532 ФФД: 1.0 [09:02:22]line ЗНМ: 0300000084 [09:02:22]line РНМ: 0000000000091622 [09:02:22]line Версия ККМ: 001 [09:02:22]line ФМ: 0000000000874674 [09:02:22]line ФД: 60511 [09:02:22]line ФПД: 78504372362994 [09:02:22]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090220&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60511&fm=78504372362994&tin=02508201610067®Number=0000000000091622&sum=100000 [09:02:22]OFD Sender: Processing packet 60511 [packets to send 30, broken 29] [09:02:22]ProducePacketName [09:02:22]name=ofd_packets/00060511 [09:02:22]OFD Sender: To server: pG, [09:02:22]CommunicateWithHost lk.salyk.kg:30040 [09:02:22]ConnectInit lk.salyk.kg [09:02:22]written 0, free lines is 4095 [09:02:22]Connected sock=10 [09:02: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 36 37 34 0F 01 00 00 BE F8 07 01 BD 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 9C 01 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 5F EC 00 00 35 04 06 00 47 66 39 3A 5E F2 76 49 A2 12 E0 7E 58 E2 [09:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 7B DF 47 00 60 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 36 37 34 10 04 04 00 5F EC 00 00 F4 03 04 00 85 A7 1D 67 B6 04 01 00 00 28 31 BE 67 DA FE C9 5D [09:02:22]CommunicateWithHost err = 0 [09:02:22]CheckOFDResponse [09:02:22]1017 (14) - 77093643461234 [09:02:22]1041 (16) - 0000000000874674 [09:02:22]1040 (4) - 60511 [09:02:22]1012 (4) - 27.10.2024 02:37 [09:02:22]1206 (1) - 0 [09:02:22]OFD Sender: Remove packet 60511 [09:02:22]ProducePacketName [09:02:22]name=ofd_packets/00060511 [09:02:22]NVStorageDeleteData [09:02:22]Write to MH i2c: 01 00 00 75 04 79 [09:02:22]Write i2c OK [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 [09:02:22]MH_I2C_Read... [09:02:22]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 EC 0C 78 [09:02:22]RasterBufferAndPrint [09:02:22]line [09:02:22]line [09:02:22]line [09:02:22]line [09:02:22]line [09:02:22]written 0, free lines is 3314 [09:02:22]MH_Cut [09:02:22]Write to MH i2c: D1 01 00 7C 04 01 52 [09:02:23]Write i2c OK [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: D1 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: D1 01 00 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: D1 01 00 7C 04 00 51 [09:02:23]Write to MH i2c: 01 00 00 7D 04 81 [09:02:23]Write i2c OK [09:02:23]MH_I2C_Read... [09:02:23]OFD Sender: No OFD packet to send [09:02:23]*** Cut start [09:02:23]*** Partial cut [09:02:23]*** CUTSNS_PIN = 1 [09:02:23]*** CUTSNS_PIN = 0 [09:02:24]*** Brake cut motor [09:02:24]Read from MH i2c: 01 [09:02:24]MH_I2C_Read... [09:02:24]*** Stop cut motor [09:02:24]*** Cut end [09:02:24]Read from MH i2c: 01 07 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [09:02:24]process_action close_receipt done [09:02:24]requested_data is exist [09:02:24]produce_requested_data [09:02:24]requested_item fm.sn is exist - process it [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 11 00 00 [09:02:24]Write to MH i2c: E2 08 00 7E 04 80 11 00 00 00 00 00 00 FC [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:24]Read from MH i2c: E2 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 17 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 17 00 7E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 53 [09:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:02:24]wFMCommunicate OK [09:02:24]requested_item fd.num is exist - process it [09:02:24]SAM_PROTO_GetFieldsCounters [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 13 00 00 [09:02:24]Write to MH i2c: E2 08 00 7F 04 80 13 00 00 00 00 00 00 FF [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:24]Read from MH i2c: E2 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 62 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 62 00 7F 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [09:02: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 5F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:24]wFMCommunicate OK [09:02:24]SAM_PROTO_GetFieldsCounters done [09:02:24]requested_item shift.num is exist - process it [09:02:24]requested_item shift.opened is exist - process it [09:02:24]req_shift_opened [09:02:24]FM_GetShiftState [09:02:24]SAM_PROTO_GetShiftState [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 13 01 00 [09:02:24]Write to MH i2c: E2 08 00 80 04 80 13 01 00 00 00 00 00 01 [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:24]Read from MH i2c: E2 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 0E 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 0E 00 80 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 9D [09:02:24]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:02:24]wFMCommunicate OK [09:02:24]SAM_PROTO_GetShiftState done [09:02:24]FM_GetShiftState done [09:02:24]req_shift_opened done [09:02:24]requested_item shift.open_date is exist - process it [09:02:24]req_shift_open_date [09:02:24]req_shift_open_date done [09:02:24]produce_requested_data done [09:02:24]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60511,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:02:24]process_action_free close_receipt [09:02:24]json_value_free [09:02:24]json_value_free done [09:02:24]process_json_proto returns [09:02:24]Send response to host [09:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60511,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:02:24]free response buf [09:02:24]execute_script done [09:02:24]execute_script returns [09:02:24]free content buf [09:02:24]Sock 7.Close socket [09:02:24]Sock 7.Thread stoped [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:11]accept exits with 9 [09:08:11]New connection [09:08:11]New thread 3067219300 created [09:08:11]Thread 3067362660 joined [09:08:11]Waiting for new connection... [09:08:11] Sock 9.Parse request [09:08:11]Sock 9.Check first char [09:08:11]Sock 9.First char is OK [09:08:11]request: POST /json_proto HTTP/1.0 [09:08:11]Method: POST [09:08:11]URL: /json_proto [09:08:11]Method is POST - this is cgi request [09:08:11]url: /json_proto [09:08:11]query_string will be loaded in cgi processing [09:08:11]execute_cgi json_proto POST (null) [09:08:11]execute_cgi path=json_proto method=POST [09:08:11]POST find Content-Length [09:08:11]Host: 172.17.42.196:8080 [09:08:11]Content-Length: 678 [09:08:11]Content-Type: application/json [09:08:11] [09:08:11]POST finish read [09:08:11]Found Content-Length = 678 [09:08:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:11]execute_script... [09:08: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)3311468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:11]POST & json_proto [09:08:11]process_json_proto [09:08:11]json parsed OK: [09:08:11]protocol is kg_v1.0 [09:08:11]action value=close_receipt [09:08:11]process_action close_receipt [09:08:11]cmd_close_receipt [09:08:11]MH_GetDate [09:08:11]Write to MH i2c: F0 00 00 81 04 74 [09:08:11]Write i2c OK [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: F0 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: F0 09 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: F0 09 00 81 04 00 FB 02 1E 67 FF C4 6B 64 91 [09:08:11]GetLastDocTimeStamp 1730019740 [09:08:11]current date 1730020091 [09:08:11]FM_GetShiftState [09:08:11]SAM_PROTO_GetShiftState [09:08:11]wFMCommunicate request_size=4 [09:08:11]MH_SAM_APDU [09:08:11]CAPDU: 80 13 01 00 [09:08:11]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [09:08:11]Write i2c OK [09:08:11]MH_I2C_Read... [09:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:11]Read from MH i2c: E2 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 0E 00 [09:08:11]MH_I2C_Read... [09:08:11]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 9F [09:08:11]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:08:11]wFMCommunicate OK [09:08:11]SAM_PROTO_GetShiftState done [09:08:11]FM_GetShiftState done [09:08:11]opened in 1729989505 [09:08:11]opened+sec_in_day 1730075905 [09:08:11]quantity*price = 50041 [09:08:11]sum+1 = 50042 [09:08:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 44 27.10.2024 09:08 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60512 ФПД: 200980719308503 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090811&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60512&fm=200980719308503&tin=02508201610067®Number=0000000000091622&sum=50000 [09:08:12]StoreToDocumentArchive [09:08:12]shift 532 fd 60512 [09:08:12]save to /storage/0532/doc_00060512 [09:08:12]save last doc name /storage/0532/doc_00060512 to /storage/kkm_last_doc_name [09:08:12]save OK [09:08:12]Clear old archive folders... [09:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:12]tlvbuf is 002266E0 [09:08:12]SAM_PROTO_ClearQueue [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 09 00 00 [09:08:12]Write to MH i2c: E2 08 00 8F 04 80 09 00 00 00 00 00 00 05 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]SAM_PROTO_ClearQueue done [09:08:12]KKMCreateOFDPacket [09:08:12]OFDProtocolAddRootSTLVToBuf [09:08:12]FM_MakeSignedData [09:08:12]FM_MakeSignedData [09:08:12]SAM_PROTO_SignData [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 0D 01 02 [09:08:12]Write to MH i2c: E2 08 00 90 04 80 0D 01 02 00 00 00 00 0D [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]wFMCommunicate request_size=255 [09:08:12]MH_SAM_APDU [09:08: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FB 02 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 60 EC 00 00 35 04 06 00 B6 [09:08:12]Write to MH i2c: E2 02 01 91 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FB 02 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 60 EC 00 00 35 04 06 00 B6 00 00 60 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]wFMCommunicate request_size=10 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 0D 02 02 05 CA 78 61 8E D7 [09:08:12]Write to MH i2c: E2 0D 00 92 04 80 0D 02 02 05 00 CA 78 61 8E D7 00 00 22 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [09:08:12]RAPDU: 90 00 [09:08:12]wFMCommunicate OK [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 0D 03 02 [09:08:12]Write to MH i2c: E2 08 00 93 04 80 0D 03 02 00 00 00 00 12 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 0B 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 0B 00 93 04 00 06 86 07 4F D9 C2 69 7D 90 00 76 [09:08:12]RAPDU: 06 86 07 4F D9 C2 69 7D 90 00 [09:08:12]wFMCommunicate OK [09:08:12]SAM_PROTO_SignData done [09:08:12]FM_MakeSignedData done [09:08:12]CreateOFDProtocolMessage [09:08:12]wFMCommunicate request_size=4 [09:08:12]MH_SAM_APDU [09:08:12]CAPDU: 80 11 00 00 [09:08:12]Write to MH i2c: E2 08 00 94 04 80 11 00 00 00 00 00 00 12 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:12]Read from MH i2c: E2 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 17 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: E2 17 00 94 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 69 [09:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:08:12]wFMCommunicate OK [09:08:12]CreateOFDProtocolMessage done [09:08:12]OFDSenderStorePacket 60512 [09:08:12]StoreOFDPacket docnum=60512 [09:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 29 99 07 01 0A 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FB 02 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 60 EC 00 00 35 04 06 00 B6 CA 78 61 8E D7 06 86 07 4F D9 C2 69 7D [09:08:12]CheckFolder [09:08:12]dirname=/storage/ofd_packets [09:08:12]CheckFolder done [09:08:12]ProducePacketName [09:08:12]name=ofd_packets/00060512 [09:08:12]NVStorageSaveData ofd_packets/00060512 [09:08:12]File name is /storage/ofd_packets/00060512 [09:08:12]Write 301 bytes [09:08:12]NVStorageSaveData done [09:08:12]OFDSenderStorePacket done [09:08:12]KKMCreateOFDPacket done [09:08:12]NVStorageSaveData kkm_last_timestamp [09:08:12]File name is /storage/kkm_last_timestamp [09:08:12]Write 4 bytes [09:08:12]NVStorageSaveData done [09:08:12]ExternCall_PrintAddStr [09:08:12]wPrintStart [09:08:12]Write to MH i2c: 01 00 00 95 04 99 [09:08:12]Write i2c OK [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 07 00 [09:08:12]MH_I2C_Read... [09:08:12]Read from MH i2c: 01 07 00 95 04 00 00 00 00 00 FF 0F AE [09:08:12]RasterBufferAndPrint [09:08:12]line Счет N : (1)3311468 [09:08:12]line ИНН: 02508201610067 [09:08:12]line Контрольно-Кассовый Чек [09:08:12]line ПРОДАЖА [09:08:12]line ТРК (МРК, ГНК) : 32 [09:08:12]line Товар: 2710124130 [09:08:12]line Аи-92-К-4 [09:08:12]line 7.480 * 66.90 [09:08:12]line = 500.41 [09:08:12]line НДС 12% НСП 1% [09:08:12]line > о реализуемом товаре [09:08:12]line ОКРУГЛЕНИЕ: -0.41 [09:08:12]line ИТОГО: 500.00 [09:08:12]line Внесено: 500.00 [09:08:12]line СДАЧА: 0.00 [09:08:12]line НСП 1% : 4.43 [09:08:12]line НДС 12% : 53.14 [09:08:12]line Наличными: 500.00 [09:08:12]line Безнал.: 0.00 [09:08:12]line Место: АЗС № 87 "Партнер Нефть" [09:08:12]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:08:12]line СНО: Общий режим [09:08:12]line Чек 44 27.10.2024 09:08 [09:08:12]line Смена: 532 ФФД: 1.0 [09:08:12]line ЗНМ: 0300000084 [09:08:12]line РНМ: 0000000000091622 [09:08:12]line Версия ККМ: 001 [09:08:12]line ФМ: 0000000000874674 [09:08:12]line ФД: 60512 [09:08:12]line ФПД: 200980719308503 [09:08:12]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090811&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60512&fm=200980719308503&tin=02508201610067®Number=0000000000091622&sum=50000 [09:08:13]written 0, free lines is 4095 [09:08:13]OFD Sender: Processing packet 60512 [packets to send 30, broken 29] [09:08:13]ProducePacketName [09:08:13]name=ofd_packets/00060512 [09:08:13]OFD Sender: To server: pG, [09:08:13]CommunicateWithHost lk.salyk.kg:30040 [09:08:13]ConnectInit lk.salyk.kg [09:08:13]Connected sock=10 [09:08: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 36 37 34 0F 01 00 00 29 99 07 01 0A 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 FB 02 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 60 EC 00 00 35 04 06 00 B6 CA 78 61 8E D7 06 86 07 4F D9 C2 69 7D [09:08:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 D7 51 47 00 ED BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 60 EC 00 00 F4 03 04 00 E3 A8 1D 67 B6 04 01 00 00 72 2A 01 4F 00 9C E0 89 [09:08:13]CommunicateWithHost err = 0 [09:08:13]CheckOFDResponse [09:08:13]1017 (14) - 77093643461234 [09:08:13]1041 (16) - 0000000000874674 [09:08:13]1040 (4) - 60512 [09:08:13]1012 (4) - 27.10.2024 02:43 [09:08:13]1206 (1) - 0 [09:08:13]OFD Sender: Remove packet 60512 [09:08:13]ProducePacketName [09:08:13]name=ofd_packets/00060512 [09:08:13]NVStorageDeleteData [09:08:13]Write to MH i2c: 01 00 00 C0 04 C4 [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 07 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 D9 0C B0 [09:08:13]RasterBufferAndPrint [09:08:13]line [09:08:13]line [09:08:13]line [09:08:13]line [09:08:13]line [09:08:13]written 0, free lines is 3296 [09:08:13]MH_Cut [09:08:13]Write to MH i2c: D1 01 00 C7 04 01 9D [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: D1 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: D1 01 00 [09:08:13]MH_I2C_Read... [09:08:13]Read from MH i2c: D1 01 00 C7 04 00 9C [09:08:13]Write to MH i2c: 01 00 00 C8 04 CC [09:08:13]Write i2c OK [09:08:13]MH_I2C_Read... [09:08:14]OFD Sender: No OFD packet to send [09:08:14]*** Cut start [09:08:14]*** Partial cut [09:08:14]*** CUTSNS_PIN = 1 [09:08:14]*** CUTSNS_PIN = 0 [09:08:14]*** Brake cut motor [09:08:14]Read from MH i2c: 01 [09:08:15]MH_I2C_Read... [09:08:15]*** Stop cut motor [09:08:15]*** Cut end [09:08:15]Read from MH i2c: 01 07 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [09:08:15]process_action close_receipt done [09:08:15]requested_data is exist [09:08:15]produce_requested_data [09:08:15]requested_item fm.sn is exist - process it [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 11 00 00 [09:08:15]Write to MH i2c: E2 08 00 C9 04 80 11 00 00 00 00 00 00 47 [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 17 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 17 00 C9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9E [09:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:08:15]wFMCommunicate OK [09:08:15]requested_item fd.num is exist - process it [09:08:15]SAM_PROTO_GetFieldsCounters [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 13 00 00 [09:08:15]Write to MH i2c: E2 08 00 CA 04 80 13 00 00 00 00 00 00 4A [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 62 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 62 00 CA 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 60 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [09:08: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 60 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:15]wFMCommunicate OK [09:08:15]SAM_PROTO_GetFieldsCounters done [09:08:15]requested_item shift.num is exist - process it [09:08:15]requested_item shift.opened is exist - process it [09:08:15]req_shift_opened [09:08:15]FM_GetShiftState [09:08:15]SAM_PROTO_GetShiftState [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 13 01 00 [09:08:15]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0E 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 E8 [09:08:15]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:08:15]wFMCommunicate OK [09:08:15]SAM_PROTO_GetShiftState done [09:08:15]FM_GetShiftState done [09:08:15]req_shift_opened done [09:08:15]requested_item shift.open_date is exist - process it [09:08:15]req_shift_open_date [09:08:15]req_shift_open_date done [09:08:15]produce_requested_data done [09:08:15]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60512,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:08:15]process_action_free close_receipt [09:08:15]json_value_free [09:08:15]json_value_free done [09:08:15]process_json_proto returns [09:08:15]Send response to host [09:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60512,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:08:15]free response buf [09:08:15]execute_script done [09:08:15]execute_script returns [09:08:15]free content buf [09:08:15]Sock 9.Close socket [09:08:15]Sock 9.Thread stoped [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:28]accept exits with 7 [09:08:28]New connection [09:08:28]New thread 3067362660 created [09:08:28]Thread 3067219300 joined [09:08:28]Waiting for new connection... [09:08:28] Sock 7.Parse request [09:08:28]Sock 7.Check first char [09:08:28]Sock 7.First char is OK [09:08:28]request: POST /json_proto HTTP/1.0 [09:08:28]Method: POST [09:08:28]URL: /json_proto [09:08:28]Method is POST - this is cgi request [09:08:28]url: /json_proto [09:08:28]query_string will be loaded in cgi processing [09:08:28]execute_cgi json_proto POST (null) [09:08:28]execute_cgi path=json_proto method=POST [09:08:28]POST find Content-Length [09:08:28]Host: 172.17.42.196:8080 [09:08:28]Content-Length: 683 [09:08:28]Content-Type: application/json [09:08:28] [09:08:28]POST finish read [09:08:28]Found Content-Length = 683 [09:08:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:28]execute_script... [09:08: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)3311467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:28]POST & json_proto [09:08:28]process_json_proto [09:08:28]json parsed OK: [09:08:28]protocol is kg_v1.0 [09:08:28]action value=close_receipt [09:08:28]process_action close_receipt [09:08:28]cmd_close_receipt [09:08:28]MH_GetDate [09:08:28]Write to MH i2c: F0 00 00 CC 04 BF [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: F0 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: F0 09 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: F0 09 00 CC 04 00 0D 03 1E 67 FF C4 6B 64 EF [09:08:28]GetLastDocTimeStamp 1730020091 [09:08:28]current date 1730020109 [09:08:28]FM_GetShiftState [09:08:28]SAM_PROTO_GetShiftState [09:08:28]wFMCommunicate request_size=4 [09:08:28]MH_SAM_APDU [09:08:28]CAPDU: 80 13 01 00 [09:08:28]Write to MH i2c: E2 08 00 CD 04 80 13 01 00 00 00 00 00 4E [09:08:28]Write i2c OK [09:08:28]MH_I2C_Read... [09:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:28]Read from MH i2c: E2 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 0E 00 [09:08:28]MH_I2C_Read... [09:08:28]Read from MH i2c: E2 0E 00 CD 04 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 EA [09:08:28]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:08:28]wFMCommunicate OK [09:08:28]SAM_PROTO_GetShiftState done [09:08:28]FM_GetShiftState done [09:08:28]opened in 1729989505 [09:08:28]opened+sec_in_day 1730075905 [09:08:28]quantity*price = 100015 [09:08:28]sum+1 = 100017 [09:08:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 45 27.10.2024 09:08 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60513 ФПД: 104847700417146 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090829&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60513&fm=104847700417146&tin=02508201610067®Number=0000000000091622&sum=100000 [09:08:29]StoreToDocumentArchive [09:08:29]shift 532 fd 60513 [09:08:29]save to /storage/0532/doc_00060513 [09:08:29]save last doc name /storage/0532/doc_00060513 to /storage/kkm_last_doc_name [09:08:29]save OK [09:08:29]Clear old archive folders... [09:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:29]tlvbuf is 0021CA40 [09:08:29]SAM_PROTO_ClearQueue [09:08:29]wFMCommunicate request_size=4 [09:08:29]MH_SAM_APDU [09:08:29]CAPDU: 80 09 00 00 [09:08:29]Write to MH i2c: E2 08 00 DA 04 80 09 00 00 00 00 00 00 50 [09:08:29]Write i2c OK [09:08:29]MH_I2C_Read... [09:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:29]Read from MH i2c: E2 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 03 00 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [09:08:29]RAPDU: 90 00 [09:08:29]wFMCommunicate OK [09:08:29]SAM_PROTO_ClearQueue done [09:08:29]KKMCreateOFDPacket [09:08:29]OFDProtocolAddRootSTLVToBuf [09:08:29]FM_MakeSignedData [09:08:29]FM_MakeSignedData [09:08:29]SAM_PROTO_SignData [09:08:29]wFMCommunicate request_size=4 [09:08:29]MH_SAM_APDU [09:08:29]CAPDU: 80 0D 01 02 [09:08:29]Write to MH i2c: E2 08 00 DB 04 80 0D 01 02 00 00 00 00 58 [09:08:29]Write i2c OK [09:08:29]MH_I2C_Read... [09:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:29]Read from MH i2c: E2 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 03 00 [09:08:29]MH_I2C_Read... [09:08:29]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [09:08:29]RAPDU: 90 00 [09:08:29]wFMCommunicate OK [09:08:29]wFMCommunicate request_size=255 [09:08:29]MH_SAM_APDU [09:08: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 61 EC 00 00 35 04 06 00 5F [09:08:29]Write to MH i2c: E2 02 01 DC 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 61 EC 00 00 35 04 06 00 5F 00 00 63 [09:08:29]Write i2c OK [09:08:29]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 03 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [09:08:30]RAPDU: 90 00 [09:08:30]wFMCommunicate OK [09:08:30]wFMCommunicate request_size=10 [09:08:30]MH_SAM_APDU [09:08:30]CAPDU: 80 0D 02 02 05 5B C1 F0 5A 7A [09:08:30]Write to MH i2c: E2 0D 00 DD 04 80 0D 02 02 05 00 5B C1 F0 5A 7A 00 00 45 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 03 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [09:08:30]RAPDU: 90 00 [09:08:30]wFMCommunicate OK [09:08:30]wFMCommunicate request_size=4 [09:08:30]MH_SAM_APDU [09:08:30]CAPDU: 80 0D 03 02 [09:08:30]Write to MH i2c: E2 08 00 DE 04 80 0D 03 02 00 00 00 00 5D [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 0B 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 0B 00 DE 04 00 F0 22 C6 70 F1 84 3F C6 90 00 20 [09:08:30]RAPDU: F0 22 C6 70 F1 84 3F C6 90 00 [09:08:30]wFMCommunicate OK [09:08:30]SAM_PROTO_SignData done [09:08:30]FM_MakeSignedData done [09:08:30]CreateOFDProtocolMessage [09:08:30]wFMCommunicate request_size=4 [09:08:30]MH_SAM_APDU [09:08:30]CAPDU: 80 11 00 00 [09:08:30]Write to MH i2c: E2 08 00 DF 04 80 11 00 00 00 00 00 00 5D [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:30]Read from MH i2c: E2 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 17 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: E2 17 00 DF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 B4 [09:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:08:30]wFMCommunicate OK [09:08:30]CreateOFDProtocolMessage done [09:08:30]OFDSenderStorePacket 60513 [09:08:30]StoreOFDPacket docnum=60513 [09:08:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 1F 69 07 01 F4 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 61 EC 00 00 35 04 06 00 5F 5B C1 F0 5A 7A F0 22 C6 70 F1 84 3F C6 [09:08:30]CheckFolder [09:08:30]dirname=/storage/ofd_packets [09:08:30]CheckFolder done [09:08:30]ProducePacketName [09:08:30]name=ofd_packets/00060513 [09:08:30]NVStorageSaveData ofd_packets/00060513 [09:08:30]File name is /storage/ofd_packets/00060513 [09:08:30]Write 301 bytes [09:08:30]NVStorageSaveData done [09:08:30]OFDSenderStorePacket done [09:08:30]KKMCreateOFDPacket done [09:08:30]NVStorageSaveData kkm_last_timestamp [09:08:30]File name is /storage/kkm_last_timestamp [09:08:30]Write 4 bytes [09:08:30]NVStorageSaveData done [09:08:30]ExternCall_PrintAddStr [09:08:30]wPrintStart [09:08:30]Write to MH i2c: 01 00 00 E0 04 E4 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: 01 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: 01 07 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: 01 07 00 E0 04 00 00 00 00 00 FF 0F F9 [09:08:30]RasterBufferAndPrint [09:08:30]line Счет N : (1)3311467 [09:08:30]line ИНН: 02508201610067 [09:08:30]line Контрольно-Кассовый Чек [09:08:30]line ПРОДАЖА [09:08:30]line ТРК (МРК, ГНК) : 22 [09:08:30]line Товар: 2710124130 [09:08:30]line Аи-92-К-4 [09:08:30]line 14.950 * 66.90 [09:08:30]line = 1000.16 [09:08:30]line НДС 12% НСП 1% [09:08:30]line > о реализуемом товаре [09:08:30]line ОКРУГЛЕНИЕ: -0.16 [09:08:30]line ИТОГО: 1000.00 [09:08:30]line Внесено: 1000.00 [09:08:30]line СДАЧА: 0.00 [09:08:30]line НСП 1% : 8.85 [09:08:30]line НДС 12% : 106.21 [09:08:30]line Наличными: 1000.00 [09:08:30]line Безнал.: 0.00 [09:08:30]line Место: АЗС № 87 "Партнер Нефть" [09:08:30]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:08:30]line СНО: Общий режим [09:08:30]line Чек 45 27.10.2024 09:08 [09:08:30]line Смена: 532 ФФД: 1.0 [09:08:30]line ЗНМ: 0300000084 [09:08:30]line РНМ: 0000000000091622 [09:08:30]line Версия ККМ: 001 [09:08:30]line ФМ: 0000000000874674 [09:08:30]line ФД: 60513 [09:08:30]line ФПД: 104847700417146 [09:08:30]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090829&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60513&fm=104847700417146&tin=02508201610067®Number=0000000000091622&sum=100000 [09:08:30]OFD Sender: Processing packet 60513 [packets to send 30, broken 29] [09:08:30]ProducePacketName [09:08:30]name=ofd_packets/00060513 [09:08:30]OFD Sender: To server: pG, [09:08:30]CommunicateWithHost lk.salyk.kg:30040 [09:08:30]ConnectInit lk.salyk.kg [09:08:30]written 0, free lines is 4095 [09:08:30]Connected sock=10 [09:08: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 36 37 34 0F 01 00 00 1F 69 07 01 F4 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 0D 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 61 EC 00 00 35 04 06 00 5F 5B C1 F0 5A 7A F0 22 C6 70 F1 84 3F C6 [09:08:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 BA 60 47 00 9D 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 61 EC 00 00 F4 03 04 00 F5 A8 1D 67 B6 04 01 00 00 BD 03 FA 42 B0 94 66 C7 [09:08:30]CommunicateWithHost err = 0 [09:08:30]CheckOFDResponse [09:08:30]1017 (14) - 77093643461234 [09:08:30]1041 (16) - 0000000000874674 [09:08:30]1040 (4) - 60513 [09:08:30]1012 (4) - 27.10.2024 02:44 [09:08:30]1206 (1) - 0 [09:08:30]OFD Sender: Remove packet 60513 [09:08:30]ProducePacketName [09:08:30]name=ofd_packets/00060513 [09:08:30]NVStorageDeleteData [09:08:30]Write to MH i2c: 01 00 00 0B 05 10 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: 01 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: 01 07 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 E2 0C 05 [09:08:30]RasterBufferAndPrint [09:08:30]line [09:08:30]line [09:08:30]line [09:08:30]line [09:08:30]line [09:08:30]written 0, free lines is 3304 [09:08:30]MH_Cut [09:08:30]Write to MH i2c: D1 01 00 12 05 01 E9 [09:08:30]Write i2c OK [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: D1 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: D1 01 00 [09:08:30]MH_I2C_Read... [09:08:30]Read from MH i2c: D1 01 00 12 05 00 E8 [09:08:31]Write to MH i2c: 01 00 00 13 05 18 [09:08:31]Write i2c OK [09:08:31]MH_I2C_Read... [09:08:31]OFD Sender: No OFD packet to send [09:08:31]*** Cut start [09:08:31]*** Partial cut [09:08:31]*** CUTSNS_PIN = 1 [09:08:31]*** CUTSNS_PIN = 0 [09:08:32]*** Brake cut motor [09:08:32]Read from MH i2c: 01 [09:08:32]MH_I2C_Read... [09:08:32]*** Stop cut motor [09:08:32]*** Cut end [09:08:32]Read from MH i2c: 01 07 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [09:08:32]process_action close_receipt done [09:08:32]requested_data is exist [09:08:32]produce_requested_data [09:08:32]requested_item fm.sn is exist - process it [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 11 00 00 [09:08:32]Write to MH i2c: E2 08 00 14 05 80 11 00 00 00 00 00 00 93 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 17 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 17 00 14 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 EA [09:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:08:32]wFMCommunicate OK [09:08:32]requested_item fd.num is exist - process it [09:08:32]SAM_PROTO_GetFieldsCounters [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 13 00 00 [09:08:32]Write to MH i2c: E2 08 00 15 05 80 13 00 00 00 00 00 00 96 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 62 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 62 00 15 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 61 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [09:08: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 61 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:32]wFMCommunicate OK [09:08:32]SAM_PROTO_GetFieldsCounters done [09:08:32]requested_item shift.num is exist - process it [09:08:32]requested_item shift.opened is exist - process it [09:08:32]req_shift_opened [09:08:32]FM_GetShiftState [09:08:32]SAM_PROTO_GetShiftState [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 13 01 00 [09:08:32]Write to MH i2c: E2 08 00 16 05 80 13 01 00 00 00 00 00 98 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0E 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0E 00 16 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 34 [09:08:32]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:08:32]wFMCommunicate OK [09:08:32]SAM_PROTO_GetShiftState done [09:08:32]FM_GetShiftState done [09:08:32]req_shift_opened done [09:08:32]requested_item shift.open_date is exist - process it [09:08:32]req_shift_open_date [09:08:32]req_shift_open_date done [09:08:32]produce_requested_data done [09:08:32]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60513,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:08:32]process_action_free close_receipt [09:08:32]json_value_free [09:08:32]json_value_free done [09:08:32]process_json_proto returns [09:08:32]Send response to host [09:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60513,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:08:32]free response buf [09:08:32]execute_script done [09:08:32]execute_script returns [09:08:32]free content buf [09:08:32]Sock 7.Close socket [09:08:32]Sock 7.Thread stoped [09:08:34]accept exits with 9 [09:08:34]New connection [09:08:34]New thread 3067219300 created [09:08:34]Thread 3067362660 joined [09:08:34]Waiting for new connection... [09:08:34] Sock 9.Parse request [09:08:34]Sock 9.Check first char [09:08:34]Sock 9.First char is OK [09:08:34]request: POST /json_proto HTTP/1.0 [09:08:34]Method: POST [09:08:34]URL: /json_proto [09:08:34]Method is POST - this is cgi request [09:08:34]url: /json_proto [09:08:34]query_string will be loaded in cgi processing [09:08:34]execute_cgi json_proto POST (null) [09:08:34]execute_cgi path=json_proto method=POST [09:08:34]POST find Content-Length [09:08:34]Host: 172.17.42.196:8080 [09:08:34]Content-Length: 689 [09:08:34]Content-Type: application/json [09:08:34] [09:08:34]POST finish read [09:08:34]Found Content-Length = 689 [09:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:34]execute_script... [09:08: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)3311466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194240", "name": "D-Energy \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:34]POST & json_proto [09:08:34]process_json_proto [09:08:34]json parsed OK: [09:08:34]protocol is kg_v1.0 [09:08:34]action value=close_receipt [09:08:34]process_action close_receipt [09:08:34]cmd_close_receipt [09:08:34]MH_GetDate [09:08:34]Write to MH i2c: F0 00 00 17 05 0B [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 09 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 09 00 17 05 00 13 03 1E 67 FF C4 6B 64 41 [09:08:34]GetLastDocTimeStamp 1730020109 [09:08:34]current date 1730020115 [09:08:34]FM_GetShiftState [09:08:34]SAM_PROTO_GetShiftState [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 13 01 00 [09:08:34]Write to MH i2c: E2 08 00 18 05 80 13 01 00 00 00 00 00 9A [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 18 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 36 [09:08:34]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:08:34]wFMCommunicate OK [09:08:34]SAM_PROTO_GetShiftState done [09:08:34]FM_GetShiftState done [09:08:34]opened in 1729989505 [09:08:34]opened+sec_in_day 1730075905 [09:08:34]quantity*price = 200025 [09:08:34]sum+1 = 200026 [09:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 46 27.10.2024 09:08 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60514 ФПД: 26558494851152 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090835&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60514&fm=26558494851152&tin=02508201610067®Number=0000000000091622&sum=200000 [09:08:35]StoreToDocumentArchive [09:08:35]shift 532 fd 60514 [09:08:35]save to /storage/0532/doc_00060514 [09:08:35]save last doc name /storage/0532/doc_00060514 to /storage/kkm_last_doc_name [09:08:35]save OK [09:08:35]Clear old archive folders... [09:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:08:35]tlvbuf is 001AC420 [09:08:35]SAM_PROTO_ClearQueue [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 09 00 00 [09:08:35]Write to MH i2c: E2 08 00 25 05 80 09 00 00 00 00 00 00 9C [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [09:08:35]RAPDU: 90 00 [09:08:35]wFMCommunicate OK [09:08:35]SAM_PROTO_ClearQueue done [09:08:35]KKMCreateOFDPacket [09:08:35]OFDProtocolAddRootSTLVToBuf [09:08:35]FM_MakeSignedData [09:08:35]FM_MakeSignedData [09:08:35]SAM_PROTO_SignData [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 0D 01 02 [09:08:35]Write to MH i2c: E2 08 00 26 05 80 0D 01 02 00 00 00 00 A4 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [09:08:35]RAPDU: 90 00 [09:08:35]wFMCommunicate OK [09:08:35]wFMCommunicate request_size=255 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EC 00 [09:08:35]Write to MH i2c: E2 02 01 27 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EC 00 00 00 0C [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [09:08:36]RAPDU: 90 00 [09:08:36]wFMCommunicate OK [09:08:36]wFMCommunicate request_size=16 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 18 27 A1 A6 C0 50 [09:08:36]Write to MH i2c: E2 13 00 28 05 80 0D 02 02 0B 00 00 35 04 06 00 18 27 A1 A6 C0 50 00 00 92 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 28 05 00 90 00 A1 [09:08:36]RAPDU: 90 00 [09:08:36]wFMCommunicate OK [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 0D 03 02 [09:08:36]Write to MH i2c: E2 08 00 29 05 80 0D 03 02 00 00 00 00 A9 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0B 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0B 00 29 05 00 80 B0 A9 F4 C6 BC 22 28 90 00 43 [09:08:36]RAPDU: 80 B0 A9 F4 C6 BC 22 28 90 00 [09:08:36]wFMCommunicate OK [09:08:36]SAM_PROTO_SignData done [09:08:36]FM_MakeSignedData done [09:08:36]CreateOFDProtocolMessage [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 11 00 00 [09:08:36]Write to MH i2c: E2 08 00 2A 05 80 11 00 00 00 00 00 00 A9 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 17 00 [09:08:36]MH_I2C_Read... [09:08:36]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 36 37 34 90 00 00 [09:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:08:36]wFMCommunicate OK [09:08:36]CreateOFDProtocolMessage done [09:08:36]OFDSenderStorePacket 60514 [09:08:36]StoreOFDPacket docnum=60514 [09:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 15 01 00 00 48 33 0D 01 AA 75 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EC 00 00 35 04 06 00 18 27 A1 A6 C0 50 80 B0 A9 F4 C6 BC 22 28 [09:08:36]CheckFolder [09:08:36]dirname=/storage/ofd_packets [09:08:36]CheckFolder done [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00060514 [09:08:36]NVStorageSaveData ofd_packets/00060514 [09:08:36]File name is /storage/ofd_packets/00060514 [09:08:36]Write 307 bytes [09:08:36]NVStorageSaveData done [09:08:36]OFDSenderStorePacket done [09:08:36]KKMCreateOFDPacket done [09:08:36]NVStorageSaveData kkm_last_timestamp [09:08:36]File name is /storage/kkm_last_timestamp [09:08:36]Write 4 bytes [09:08:36]NVStorageSaveData done [09:08:36]ExternCall_PrintAddStr [09:08:36]wPrintStart [09:08:36]Write to MH i2c: 01 00 00 2B 05 30 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 2B 05 00 00 00 00 00 FF 0F 45 [09:08:36]RasterBufferAndPrint [09:08:36]line Счет N : (1)3311466 [09:08:36]line ИНН: 02508201610067 [09:08:36]line Контрольно-Кассовый Чек [09:08:36]line ПРОДАЖА [09:08:36]line ТРК (МРК, ГНК) : 41 [09:08:36]line Товар: 2710194240 [09:08:36]line D-Energy Дт-К-2 [09:08:36]line 25.910 * 77.20 [09:08:36]line = 2000.25 [09:08:36]line НДС 12% НСП 1% [09:08:36]line > о реализуемом товаре [09:08:36]line ОКРУГЛЕНИЕ: -0.25 [09:08:36]line ИТОГО: 2000.00 [09:08:36]line Внесено: 2000.00 [09:08:36]line СДАЧА: 0.00 [09:08:36]line НСП 1% : 17.70 [09:08:36]line НДС 12% : 212.42 [09:08:36]line Наличными: 2000.00 [09:08:36]line Безнал.: 0.00 [09:08:36]line Место: АЗС № 87 "Партнер Нефть" [09:08:36]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:08:36]line СНО: Общий режим [09:08:36]line Чек 46 27.10.2024 09:08 [09:08:36]line Смена: 532 ФФД: 1.0 [09:08:36]line ЗНМ: 0300000084 [09:08:36]line РНМ: 0000000000091622 [09:08:36]line Версия ККМ: 001 [09:08:36]line ФМ: 0000000000874674 [09:08:36]line ФД: 60514 [09:08:36]line ФПД: 26558494851152 [09:08:36]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090835&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60514&fm=26558494851152&tin=02508201610067®Number=0000000000091622&sum=200000 [09:08:36]written 0, free lines is 4095 [09:08:36]OFD Sender: Processing packet 60514 [packets to send 30, broken 29] [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00060514 [09:08:36]OFD Sender: To server: pG, [09:08:36]CommunicateWithHost lk.salyk.kg:30040 [09:08:36]ConnectInit lk.salyk.kg [09:08:36]Connected sock=10 [09:08: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 36 37 34 15 01 00 00 48 33 0D 01 AA 75 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 34 30 06 04 12 00 44 2D 45 6E 65 72 67 79 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 13 03 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EC 00 00 35 04 06 00 18 27 A1 A6 C0 50 80 B0 A9 F4 C6 BC 22 28 [09:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 1C 7B 47 00 D1 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 62 EC 00 00 F4 03 04 00 FB A8 1D 67 B6 04 01 00 00 EC 67 45 30 67 65 45 B4 [09:08:36]CommunicateWithHost err = 0 [09:08:36]CheckOFDResponse [09:08:36]1017 (14) - 77093643461234 [09:08:36]1041 (16) - 0000000000874674 [09:08:36]1040 (4) - 60514 [09:08:36]1012 (4) - 27.10.2024 02:44 [09:08:36]1206 (1) - 0 [09:08:36]OFD Sender: Remove packet 60514 [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00060514 [09:08:36]NVStorageDeleteData [09:08:36]Write to MH i2c: 01 00 00 56 05 5B [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 F3 0C 61 [09:08:36]RasterBufferAndPrint [09:08:36]line [09:08:36]line [09:08:36]line [09:08:36]line [09:08:36]line [09:08:36]written 0, free lines is 3328 [09:08:36]MH_Cut [09:08:36]Write to MH i2c: D1 01 00 5D 05 01 34 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: D1 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: D1 01 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: D1 01 00 5D 05 00 33 [09:08:36]Write to MH i2c: 01 00 00 5E 05 63 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:37]OFD Sender: No OFD packet to send [09:08:37]*** Cut start [09:08:37]*** Partial cut [09:08:37]*** CUTSNS_PIN = 1 [09:08:37]*** CUTSNS_PIN = 0 [09:08:37]*** Brake cut motor [09:08:38]Read from MH i2c: 01 [09:08:38]MH_I2C_Read... [09:08:38]*** Stop cut motor [09:08:38]*** Cut end [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 5E 05 00 00 00 00 00 FF 0F 78 [09:08:38]process_action close_receipt done [09:08:38]requested_data is exist [09:08:38]produce_requested_data [09:08:38]requested_item fm.sn is exist - process it [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 5F 05 80 11 00 00 00 00 00 00 DE [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 5F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 35 [09:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:08:38]wFMCommunicate OK [09:08:38]requested_item fd.num is exist - process it [09:08:38]SAM_PROTO_GetFieldsCounters [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 13 00 00 [09:08:38]Write to MH i2c: E2 08 00 60 05 80 13 00 00 00 00 00 00 E1 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 62 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 62 00 60 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 62 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [09:08: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 62 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:38]wFMCommunicate OK [09:08:38]SAM_PROTO_GetFieldsCounters done [09:08:38]requested_item shift.num is exist - process it [09:08:38]requested_item shift.opened is exist - process it [09:08:38]req_shift_opened [09:08:38]FM_GetShiftState [09:08:38]SAM_PROTO_GetShiftState [09:08:38]wFMCommunicate request_size=4 [09:08:38]MH_SAM_APDU [09:08:38]CAPDU: 80 13 01 00 [09:08:38]Write to MH i2c: E2 08 00 61 05 80 13 01 00 00 00 00 00 E3 [09:08:38]Write i2c OK [09:08:38]MH_I2C_Read... [09:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:38]Read from MH i2c: E2 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 0E 00 [09:08:38]MH_I2C_Read... [09:08:38]Read from MH i2c: E2 0E 00 61 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 7F [09:08:38]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:08:38]wFMCommunicate OK [09:08:38]SAM_PROTO_GetShiftState done [09:08:38]FM_GetShiftState done [09:08:38]req_shift_opened done [09:08:38]requested_item shift.open_date is exist - process it [09:08:38]req_shift_open_date [09:08:38]req_shift_open_date done [09:08:38]produce_requested_data done [09:08:38]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60514,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:08:38]process_action_free close_receipt [09:08:38]json_value_free [09:08:38]json_value_free done [09:08:38]process_json_proto returns [09:08:38]Send response to host [09:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60514,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:08:38]free response buf [09:08:38]execute_script done [09:08:38]execute_script returns [09:08:38]free content buf [09:08:38]Sock 9.Close socket [09:08:38]Sock 9.Thread stoped [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:17]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:40]accept exits with 7 [09:30:40]New connection [09:30:40]New thread 3067362660 created [09:30:40]Thread 3067219300 joined [09:30:40]Waiting for new connection... [09:30:40] Sock 7.Parse request [09:30:40]Sock 7.Check first char [09:30:40]Sock 7.First char is OK [09:30:40]request: POST /json_proto HTTP/1.0 [09:30:40]Method: POST [09:30:40]URL: /json_proto [09:30:40]Method is POST - this is cgi request [09:30:40]url: /json_proto [09:30:40]query_string will be loaded in cgi processing [09:30:40]execute_cgi json_proto POST (null) [09:30:40]execute_cgi path=json_proto method=POST [09:30:40]POST find Content-Length [09:30:40]Host: 172.17.42.196:8080 [09:30:40]Content-Length: 770 [09:30:40]Content-Type: application/json [09:30:40] [09:30:40]POST finish read [09:30:40]Found Content-Length = 770 [09:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:40]execute_script... [09:30: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)3311487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:40]POST & json_proto [09:30:40]process_json_proto [09:30:40]json parsed OK: [09:30:40]protocol is kg_v1.0 [09:30:40]action value=close_receipt [09:30:40]process_action close_receipt [09:30:40]cmd_close_receipt [09:30:40]MH_GetDate [09:30:40]Write to MH i2c: F0 00 00 62 05 56 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: F0 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: F0 09 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: F0 09 00 62 05 00 41 08 1E 67 FF C4 6B 64 BF [09:30:40]GetLastDocTimeStamp 1730020115 [09:30:40]current date 1730021441 [09:30:40]FM_GetShiftState [09:30:40]SAM_PROTO_GetShiftState [09:30:40]wFMCommunicate request_size=4 [09:30:40]MH_SAM_APDU [09:30:40]CAPDU: 80 13 01 00 [09:30:40]Write to MH i2c: E2 08 00 63 05 80 13 01 00 00 00 00 00 E5 [09:30:40]Write i2c OK [09:30:40]MH_I2C_Read... [09:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:40]Read from MH i2c: E2 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0E 00 [09:30:40]MH_I2C_Read... [09:30:40]Read from MH i2c: E2 0E 00 63 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 81 [09:30:40]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:30:40]wFMCommunicate OK [09:30:40]SAM_PROTO_GetShiftState done [09:30:40]FM_GetShiftState done [09:30:40]opened in 1729989505 [09:30:40]opened+sec_in_day 1730075905 [09:30:40]quantity*price = 100015 [09:30:40]sum+1 = 100017 [09:30:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 47 27.10.2024 09:30 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60515 ФПД: 7530855361994 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093041&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60515&fm=7530855361994&tin=02508201610067®Number=0000000000091622&sum=100016 [09:30:41]StoreToDocumentArchive [09:30:41]shift 532 fd 60515 [09:30:41]save to /storage/0532/doc_00060515 [09:30:41]save last doc name /storage/0532/doc_00060515 to /storage/kkm_last_doc_name [09:30:41]save OK [09:30:41]Clear old archive folders... [09:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:41]tlvbuf is 001C94B0 [09:30:41]SAM_PROTO_ClearQueue [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 09 00 00 [09:30:41]Write to MH i2c: E2 08 00 70 05 80 09 00 00 00 00 00 00 E7 [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 03 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [09:30:41]RAPDU: 90 00 [09:30:41]wFMCommunicate OK [09:30:41]SAM_PROTO_ClearQueue done [09:30:41]KKMCreateOFDPacket [09:30:41]OFDProtocolAddRootSTLVToBuf [09:30:41]FM_MakeSignedData [09:30:41]FM_MakeSignedData [09:30:41]SAM_PROTO_SignData [09:30:41]wFMCommunicate request_size=4 [09:30:41]MH_SAM_APDU [09:30:41]CAPDU: 80 0D 01 02 [09:30:41]Write to MH i2c: E2 08 00 71 05 80 0D 01 02 00 00 00 00 EF [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:41]Read from MH i2c: E2 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 03 00 [09:30:41]MH_I2C_Read... [09:30:41]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [09:30:41]RAPDU: 90 00 [09:30:41]wFMCommunicate OK [09:30:41]wFMCommunicate request_size=255 [09:30:41]MH_SAM_APDU [09:30: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 41 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EC 00 00 35 04 06 00 06 [09:30:41]Write to MH i2c: E2 02 01 72 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 41 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EC 00 00 35 04 06 00 06 00 00 FE [09:30:41]Write i2c OK [09:30:41]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 03 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [09:30:42]RAPDU: 90 00 [09:30:42]wFMCommunicate OK [09:30:42]wFMCommunicate request_size=10 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 0D 02 02 05 D9 69 F5 6D CA [09:30:42]Write to MH i2c: E2 0D 00 73 05 80 0D 02 02 05 00 D9 69 F5 6D CA 00 00 6A [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 03 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 03 00 73 05 00 90 00 EC [09:30:42]RAPDU: 90 00 [09:30:42]wFMCommunicate OK [09:30:42]wFMCommunicate request_size=4 [09:30:42]MH_SAM_APDU [09:30:42]CAPDU: 80 0D 03 02 [09:30:42]Write to MH i2c: E2 08 00 74 05 80 0D 03 02 00 00 00 00 F4 [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:42]Read from MH i2c: E2 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 0B 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: E2 0B 00 74 05 00 6F A1 78 C0 48 95 16 3B 90 00 6B [09:30:42]RAPDU: 6F A1 78 C0 48 95 16 3B 90 00 [09:30:42]wFMCommunicate OK [09:30:42]SAM_PROTO_SignData done [09:30:42]FM_MakeSignedData done [09:30:42]CreateOFDProtocolMessage [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 75 05 80 11 00 00 00 00 00 00 F4 [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 75 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 4B [09:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:30:42]wFMCommunicate OK [09:30:42]CreateOFDProtocolMessage done [09:30:42]OFDSenderStorePacket 60515 [09:30:42]StoreOFDPacket docnum=60515 [09:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 52 0F 07 01 99 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 41 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EC 00 00 35 04 06 00 06 D9 69 F5 6D CA 6F A1 78 C0 48 95 16 3B [09:30:42]CheckFolder [09:30:42]dirname=/storage/ofd_packets [09:30:42]CheckFolder done [09:30:42]ProducePacketName [09:30:42]name=ofd_packets/00060515 [09:30:42]NVStorageSaveData ofd_packets/00060515 [09:30:42]File name is /storage/ofd_packets/00060515 [09:30:42]Write 301 bytes [09:30:42]NVStorageSaveData done [09:30:42]OFDSenderStorePacket done [09:30:42]KKMCreateOFDPacket done [09:30:42]NVStorageSaveData kkm_last_timestamp [09:30:42]File name is /storage/kkm_last_timestamp [09:30:42]Write 4 bytes [09:30:42]NVStorageSaveData done [09:30:42]ExternCall_PrintAddStr [09:30:42]wPrintStart [09:30:42]Write to MH i2c: 01 00 00 76 05 7B [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: 01 [09:30:42]MH_I2C_Read... [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 76 05 00 00 00 00 00 FF 0F 90 [09:30:42]RasterBufferAndPrint [09:30:42]line Счет N : (1)3311487 [09:30:42]line ИНН: 02508201610067 [09:30:42]line Контрольно-Кассовый Чек [09:30:42]line ПРОДАЖА [09:30:42]line ТРК (МРК, ГНК) : 32 [09:30:42]line Товар: 2710124130 [09:30:42]line Аи-92-К-4 [09:30:42]line 14.950 * 66.90 [09:30:42]line = 1000.16 [09:30:42]line НДС 12% НСП 1% [09:30:42]line > о реализуемом товаре [09:30:42]line ИТОГО: 1000.16 [09:30:42]line НСП 1% : 8.85 [09:30:42]line НДС 12% : 106.21 [09:30:42]line Наличными: 0.00 [09:30:42]line Безнал.: 1000.16 [09:30:42]line Место: АЗС № 87 "Партнер Нефть" [09:30:42]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:30:42]line СНО: Общий режим [09:30:42]line Чек 47 27.10.2024 09:30 [09:30:42]line Смена: 532 ФФД: 1.0 [09:30:42]line ЗНМ: 0300000084 [09:30:42]line РНМ: 0000000000091622 [09:30:42]line Версия ККМ: 001 [09:30:42]line Платежная система: Mbank [09:30:42]line ФМ: 0000000000874674 [09:30:42]line ФД: 60515 [09:30:42]line ФПД: 7530855361994 [09:30:42]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093041&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60515&fm=7530855361994&tin=02508201610067®Number=0000000000091622&sum=100016 [09:30:42]written 0, free lines is 4095 [09:30:42]OFD Sender: Processing packet 60515 [packets to send 30, broken 29] [09:30:42]ProducePacketName [09:30:42]name=ofd_packets/00060515 [09:30:42]OFD Sender: To server: pG, [09:30:42]CommunicateWithHost lk.salyk.kg:30040 [09:30:42]ConnectInit lk.salyk.kg [09:30:42]Connected sock=10 [09:30: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 36 37 34 0F 01 00 00 52 0F 07 01 99 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 41 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 63 EC 00 00 35 04 06 00 06 D9 69 F5 6D CA 6F A1 78 C0 48 95 16 3B [09:30:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 A0 75 47 00 CD 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 36 37 34 10 04 04 00 63 EC 00 00 F4 03 04 00 29 AE 1D 67 B6 04 01 00 00 DD B3 81 1A 24 9C DF 4E [09:30:42]CommunicateWithHost err = 0 [09:30:42]CheckOFDResponse [09:30:42]1017 (14) - 77093643461234 [09:30:42]1041 (16) - 0000000000874674 [09:30:42]1040 (4) - 60515 [09:30:42]1012 (4) - 27.10.2024 03:06 [09:30:42]1206 (1) - 0 [09:30:42]OFD Sender: Remove packet 60515 [09:30:42]ProducePacketName [09:30:42]name=ofd_packets/00060515 [09:30:42]NVStorageDeleteData [09:30:42]Write to MH i2c: 01 00 00 9F 05 A4 [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: 01 [09:30:42]MH_I2C_Read... [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 9F 05 00 00 00 00 00 0A 0D C2 [09:30:42]RasterBufferAndPrint [09:30:42]line [09:30:42]line [09:30:42]line [09:30:42]line [09:30:42]line [09:30:42]written 0, free lines is 3345 [09:30:42]MH_Cut [09:30:42]Write to MH i2c: D1 01 00 A6 05 01 7D [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: D1 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: D1 01 00 [09:30:42]MH_I2C_Read... [09:30:42]Read from MH i2c: D1 01 00 A6 05 00 7C [09:30:42]Write to MH i2c: 01 00 00 A7 05 AC [09:30:42]Write i2c OK [09:30:42]MH_I2C_Read... [09:30:43]OFD Sender: No OFD packet to send [09:30:43]*** Cut start [09:30:43]*** Partial cut [09:30:43]*** CUTSNS_PIN = 1 [09:30:43]*** CUTSNS_PIN = 0 [09:30:43]*** Brake cut motor [09:30:44]Read from MH i2c: 01 [09:30:44]MH_I2C_Read... [09:30:44]*** Stop cut motor [09:30:44]*** Cut end [09:30:44]Read from MH i2c: 01 07 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [09:30:44]process_action close_receipt done [09:30:44]requested_data is exist [09:30:44]produce_requested_data [09:30:44]requested_item fm.sn is exist - process it [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 11 00 00 [09:30:44]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 17 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 7E [09:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:30:44]wFMCommunicate OK [09:30:44]requested_item fd.num is exist - process it [09:30:44]SAM_PROTO_GetFieldsCounters [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 13 00 00 [09:30:44]Write to MH i2c: E2 08 00 A9 05 80 13 00 00 00 00 00 00 2A [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 62 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 62 00 A9 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 63 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [09:30: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 63 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:44]wFMCommunicate OK [09:30:44]SAM_PROTO_GetFieldsCounters done [09:30:44]requested_item shift.num is exist - process it [09:30:44]requested_item shift.opened is exist - process it [09:30:44]req_shift_opened [09:30:44]FM_GetShiftState [09:30:44]SAM_PROTO_GetShiftState [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 13 01 00 [09:30:44]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0E 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 C8 [09:30:44]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:30:44]wFMCommunicate OK [09:30:44]SAM_PROTO_GetShiftState done [09:30:44]FM_GetShiftState done [09:30:44]req_shift_opened done [09:30:44]requested_item shift.open_date is exist - process it [09:30:44]req_shift_open_date [09:30:44]req_shift_open_date done [09:30:44]produce_requested_data done [09:30:44]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60515,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:30:44]process_action_free close_receipt [09:30:44]json_value_free [09:30:44]json_value_free done [09:30:44]process_json_proto returns [09:30:44]Send response to host [09:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60515,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:30:44]free response buf [09:30:44]execute_script done [09:30:44]execute_script returns [09:30:44]free content buf [09:30:44]Sock 7.Close socket [09:30:44]Sock 7.Thread stoped [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:29]accept exits with 9 [09:31:29]New connection [09:31:29]New thread 3067219300 created [09:31:29]Thread 3067362660 joined [09:31:29]Waiting for new connection... [09:31:29] Sock 9.Parse request [09:31:29]Sock 9.Check first char [09:31:29]Sock 9.First char is OK [09:31:29]request: POST /json_proto HTTP/1.0 [09:31:29]Method: POST [09:31:29]URL: /json_proto [09:31:29]Method is POST - this is cgi request [09:31:29]url: /json_proto [09:31:29]query_string will be loaded in cgi processing [09:31:29]execute_cgi json_proto POST (null) [09:31:29]execute_cgi path=json_proto method=POST [09:31:29]POST find Content-Length [09:31:29]Host: 172.17.42.196:8080 [09:31:29]Content-Length: 770 [09:31:29]Content-Type: application/json [09:31:29] [09:31:29]POST finish read [09:31:29]Found Content-Length = 770 [09:31:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:29]execute_script... [09:31: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)3311488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:29]POST & json_proto [09:31:29]process_json_proto [09:31:29]json parsed OK: [09:31:29]protocol is kg_v1.0 [09:31:29]action value=close_receipt [09:31:29]process_action close_receipt [09:31:29]cmd_close_receipt [09:31:29]MH_GetDate [09:31:29]Write to MH i2c: F0 00 00 AB 05 9F [09:31:29]Write i2c OK [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: F0 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: F0 09 00 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: F0 09 00 AB 05 00 72 08 1E 67 FF C4 6B 64 39 [09:31:29]GetLastDocTimeStamp 1730021441 [09:31:29]current date 1730021490 [09:31:29]FM_GetShiftState [09:31:29]SAM_PROTO_GetShiftState [09:31:29]wFMCommunicate request_size=4 [09:31:29]MH_SAM_APDU [09:31:29]CAPDU: 80 13 01 00 [09:31:29]Write to MH i2c: E2 08 00 AC 05 80 13 01 00 00 00 00 00 2E [09:31:29]Write i2c OK [09:31:29]MH_I2C_Read... [09:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:29]Read from MH i2c: E2 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 0E 00 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 0E 00 AC 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CA [09:31:29]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:31:29]wFMCommunicate OK [09:31:29]SAM_PROTO_GetShiftState done [09:31:29]FM_GetShiftState done [09:31:29]opened in 1729989505 [09:31:29]opened+sec_in_day 1730075905 [09:31:29]quantity*price = 100015 [09:31:29]sum+1 = 100017 [09:31:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 48 27.10.2024 09:31 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60516 ФПД: 280253221633391 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093130&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60516&fm=280253221633391&tin=02508201610067®Number=0000000000091622&sum=100016 [09:31:31]StoreToDocumentArchive [09:31:31]shift 532 fd 60516 [09:31:31]save to /storage/0532/doc_00060516 [09:31:31]save last doc name /storage/0532/doc_00060516 to /storage/kkm_last_doc_name [09:31:31]save OK [09:31:31]Clear old archive folders... [09:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:31]tlvbuf is 00220640 [09:31:31]SAM_PROTO_ClearQueue [09:31:31]wFMCommunicate request_size=4 [09:31:31]MH_SAM_APDU [09:31:31]CAPDU: 80 09 00 00 [09:31:31]Write to MH i2c: E2 08 00 B9 05 80 09 00 00 00 00 00 00 30 [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:31]Read from MH i2c: E2 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [09:31:31]RAPDU: 90 00 [09:31:31]wFMCommunicate OK [09:31:31]SAM_PROTO_ClearQueue done [09:31:31]KKMCreateOFDPacket [09:31:31]OFDProtocolAddRootSTLVToBuf [09:31:31]FM_MakeSignedData [09:31:31]FM_MakeSignedData [09:31:31]SAM_PROTO_SignData [09:31:31]wFMCommunicate request_size=4 [09:31:31]MH_SAM_APDU [09:31:31]CAPDU: 80 0D 01 02 [09:31:31]Write to MH i2c: E2 08 00 BA 05 80 0D 01 02 00 00 00 00 38 [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:31]Read from MH i2c: E2 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [09:31:31]RAPDU: 90 00 [09:31:31]wFMCommunicate OK [09:31:31]wFMCommunicate request_size=255 [09:31:31]MH_SAM_APDU [09:31: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 72 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EC 00 00 35 04 06 00 FE [09:31:31]Write to MH i2c: E2 02 01 BB 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 72 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EC 00 00 35 04 06 00 FE 00 00 72 [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:31]Read from MH i2c: E2 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [09:31:31]RAPDU: 90 00 [09:31:31]wFMCommunicate OK [09:31:31]wFMCommunicate request_size=10 [09:31:31]MH_SAM_APDU [09:31:31]CAPDU: 80 0D 02 02 05 E3 89 B8 FD 6F [09:31:31]Write to MH i2c: E2 0D 00 BC 05 80 0D 02 02 05 00 E3 89 B8 FD 6F 00 00 D5 [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:31]Read from MH i2c: E2 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [09:31:31]RAPDU: 90 00 [09:31:31]wFMCommunicate OK [09:31:31]wFMCommunicate request_size=4 [09:31:31]MH_SAM_APDU [09:31:31]CAPDU: 80 0D 03 02 [09:31:31]Write to MH i2c: E2 08 00 BD 05 80 0D 03 02 00 00 00 00 3D [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:31]Read from MH i2c: E2 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 0B 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 0B 00 BD 05 00 0F B2 99 64 6C CB 8F 6E 90 00 30 [09:31:31]RAPDU: 0F B2 99 64 6C CB 8F 6E 90 00 [09:31:31]wFMCommunicate OK [09:31:31]SAM_PROTO_SignData done [09:31:31]FM_MakeSignedData done [09:31:31]CreateOFDProtocolMessage [09:31:31]wFMCommunicate request_size=4 [09:31:31]MH_SAM_APDU [09:31:31]CAPDU: 80 11 00 00 [09:31:31]Write to MH i2c: E2 08 00 BE 05 80 11 00 00 00 00 00 00 3D [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:31]Read from MH i2c: E2 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 17 00 [09:31:31]MH_I2C_Read... [09:31:31]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 36 37 34 90 00 94 [09:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:31:31]wFMCommunicate OK [09:31:31]CreateOFDProtocolMessage done [09:31:31]OFDSenderStorePacket 60516 [09:31:31]StoreOFDPacket docnum=60516 [09:31:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 87 DC 07 01 8F 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 72 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EC 00 00 35 04 06 00 FE E3 89 B8 FD 6F 0F B2 99 64 6C CB 8F 6E [09:31:31]CheckFolder [09:31:31]dirname=/storage/ofd_packets [09:31:31]CheckFolder done [09:31:31]ProducePacketName [09:31:31]name=ofd_packets/00060516 [09:31:31]NVStorageSaveData ofd_packets/00060516 [09:31:31]File name is /storage/ofd_packets/00060516 [09:31:31]Write 301 bytes [09:31:31]NVStorageSaveData done [09:31:31]OFDSenderStorePacket done [09:31:31]KKMCreateOFDPacket done [09:31:31]NVStorageSaveData kkm_last_timestamp [09:31:31]File name is /storage/kkm_last_timestamp [09:31:31]Write 4 bytes [09:31:31]NVStorageSaveData done [09:31:31]ExternCall_PrintAddStr [09:31:31]wPrintStart [09:31:31]Write to MH i2c: 01 00 00 BF 05 C4 [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: 01 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: 01 07 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 FF 0F D9 [09:31:31]RasterBufferAndPrint [09:31:31]line Счет N : (1)3311488 [09:31:31]line ИНН: 02508201610067 [09:31:31]line Контрольно-Кассовый Чек [09:31:31]line ПРОДАЖА [09:31:31]line ТРК (МРК, ГНК) : 42 [09:31:31]line Товар: 2710124130 [09:31:31]line Аи-92-К-4 [09:31:31]line 14.950 * 66.90 [09:31:31]line = 1000.16 [09:31:31]line НДС 12% НСП 1% [09:31:31]line > о реализуемом товаре [09:31:31]line ИТОГО: 1000.16 [09:31:31]line НСП 1% : 8.85 [09:31:31]line НДС 12% : 106.21 [09:31:31]line Наличными: 0.00 [09:31:31]line Безнал.: 1000.16 [09:31:31]line Место: АЗС № 87 "Партнер Нефть" [09:31:31]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:31:31]line СНО: Общий режим [09:31:31]line Чек 48 27.10.2024 09:31 [09:31:31]line Смена: 532 ФФД: 1.0 [09:31:31]line ЗНМ: 0300000084 [09:31:31]line РНМ: 0000000000091622 [09:31:31]line Версия ККМ: 001 [09:31:31]line Платежная система: Mbank [09:31:31]line ФМ: 0000000000874674 [09:31:31]line ФД: 60516 [09:31:31]line ФПД: 280253221633391 [09:31:31]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093130&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60516&fm=280253221633391&tin=02508201610067®Number=0000000000091622&sum=100016 [09:31:31]OFD Sender: Processing packet 60516 [packets to send 30, broken 29] [09:31:31]ProducePacketName [09:31:31]name=ofd_packets/00060516 [09:31:31]OFD Sender: To server: pG, [09:31:31]CommunicateWithHost lk.salyk.kg:30040 [09:31:31]ConnectInit lk.salyk.kg [09:31:31]written 0, free lines is 4095 [09:31:32]Connected sock=10 [09:31: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 36 37 34 0F 01 00 00 87 DC 07 01 8F 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 72 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 64 EC 00 00 35 04 06 00 FE E3 89 B8 FD 6F 0F B2 99 64 6C CB 8F 6E [09:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 13 5A 47 00 B9 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 36 37 34 10 04 04 00 64 EC 00 00 F4 03 04 00 5A AE 1D 67 B6 04 01 00 00 B6 E4 41 58 87 34 AE DF [09:31:32]CommunicateWithHost err = 0 [09:31:32]CheckOFDResponse [09:31:32]1017 (14) - 77093643461234 [09:31:32]1041 (16) - 0000000000874674 [09:31:32]1040 (4) - 60516 [09:31:32]1012 (4) - 27.10.2024 03:07 [09:31:32]1206 (1) - 0 [09:31:32]OFD Sender: Remove packet 60516 [09:31:32]ProducePacketName [09:31:32]name=ofd_packets/00060516 [09:31:32]NVStorageDeleteData [09:31:32]Write to MH i2c: 01 00 00 E8 05 ED [09:31:32]Write i2c OK [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: 01 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: 01 07 00 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: 01 07 00 E8 05 00 00 00 00 00 01 0D 02 [09:31:32]RasterBufferAndPrint [09:31:32]line [09:31:32]line [09:31:32]line [09:31:32]line [09:31:32]line [09:31:32]written 0, free lines is 3336 [09:31:32]MH_Cut [09:31:32]Write to MH i2c: D1 01 00 EF 05 01 C6 [09:31:32]Write i2c OK [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: D1 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: D1 01 00 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: D1 01 00 EF 05 00 C5 [09:31:32]Write to MH i2c: 01 00 00 F0 05 F5 [09:31:32]Write i2c OK [09:31:32]MH_I2C_Read... [09:31:32]OFD Sender: No OFD packet to send [09:31:33]*** Cut start [09:31:33]*** Partial cut [09:31:33]*** CUTSNS_PIN = 1 [09:31:33]*** CUTSNS_PIN = 0 [09:31:33]*** Brake cut motor [09:31:33]Read from MH i2c: 01 [09:31:33]MH_I2C_Read... [09:31:33]*** Stop cut motor [09:31:33]*** Cut end [09:31:33]Read from MH i2c: 01 07 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [09:31:33]process_action close_receipt done [09:31:33]requested_data is exist [09:31:33]produce_requested_data [09:31:33]requested_item fm.sn is exist - process it [09:31:33]wFMCommunicate request_size=4 [09:31:33]MH_SAM_APDU [09:31:33]CAPDU: 80 11 00 00 [09:31:33]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:33]Read from MH i2c: E2 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 17 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C7 [09:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:31:33]wFMCommunicate OK [09:31:33]requested_item fd.num is exist - process it [09:31:33]SAM_PROTO_GetFieldsCounters [09:31:33]wFMCommunicate request_size=4 [09:31:33]MH_SAM_APDU [09:31:33]CAPDU: 80 13 00 00 [09:31:33]Write to MH i2c: E2 08 00 F2 05 80 13 00 00 00 00 00 00 73 [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:33]Read from MH i2c: E2 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 62 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 62 00 F2 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 64 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [09:31: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 64 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:33]wFMCommunicate OK [09:31:33]SAM_PROTO_GetFieldsCounters done [09:31:33]requested_item shift.num is exist - process it [09:31:33]requested_item shift.opened is exist - process it [09:31:33]req_shift_opened [09:31:33]FM_GetShiftState [09:31:33]SAM_PROTO_GetShiftState [09:31:33]wFMCommunicate request_size=4 [09:31:33]MH_SAM_APDU [09:31:33]CAPDU: 80 13 01 00 [09:31:33]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 0E 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 11 [09:31:34]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:31:34]wFMCommunicate OK [09:31:34]SAM_PROTO_GetShiftState done [09:31:34]FM_GetShiftState done [09:31:34]req_shift_opened done [09:31:34]requested_item shift.open_date is exist - process it [09:31:34]req_shift_open_date [09:31:34]req_shift_open_date done [09:31:34]produce_requested_data done [09:31:34]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60516,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:31:34]process_action_free close_receipt [09:31:34]json_value_free [09:31:34]json_value_free done [09:31:34]process_json_proto returns [09:31:34]Send response to host [09:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60516,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:31:34]free response buf [09:31:34]execute_script done [09:31:34]execute_script returns [09:31:34]free content buf [09:31:34]Sock 9.Close socket [09:31:34]Sock 9.Thread stoped [09:31:37]OFD Sender: No OFD packet to send [09:31:42]OFD Sender: No OFD packet to send [09:31:47]OFD Sender: No OFD packet to send [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:19]accept exits with 7 [09:32:19]New connection [09:32:19]New thread 3067362660 created [09:32:19]Thread 3067219300 joined [09:32:19]Waiting for new connection... [09:32:19] Sock 7.Parse request [09:32:19]Sock 7.Check first char [09:32:19]Sock 7.First char is OK [09:32:19]request: POST /json_proto HTTP/1.0 [09:32:19]Method: POST [09:32:19]URL: /json_proto [09:32:19]Method is POST - this is cgi request [09:32:19]url: /json_proto [09:32:19]query_string will be loaded in cgi processing [09:32:19]execute_cgi json_proto POST (null) [09:32:19]execute_cgi path=json_proto method=POST [09:32:19]POST find Content-Length [09:32:19]Host: 172.17.42.196:8080 [09:32:19]Content-Length: 773 [09:32:19]Content-Type: application/json [09:32:19] [09:32:19]POST finish read [09:32:19]Found Content-Length = 773 [09:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200151", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:19]execute_script... [09:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200151", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:19]POST & json_proto [09:32:19]process_json_proto [09:32:19]json parsed OK: [09:32:19]protocol is kg_v1.0 [09:32:19]action value=close_receipt [09:32:19]process_action close_receipt [09:32:19]cmd_close_receipt [09:32:19]MH_GetDate [09:32:19]Write to MH i2c: F0 00 00 F4 05 E8 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 09 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: F0 09 00 F4 05 00 A3 08 1E 67 FF C4 6B 64 B3 [09:32:19]GetLastDocTimeStamp 1730021490 [09:32:19]current date 1730021539 [09:32:19]FM_GetShiftState [09:32:19]SAM_PROTO_GetShiftState [09:32:19]wFMCommunicate request_size=4 [09:32:19]MH_SAM_APDU [09:32:19]CAPDU: 80 13 01 00 [09:32:19]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [09:32:19]Write i2c OK [09:32:19]MH_I2C_Read... [09:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:19]Read from MH i2c: E2 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 [09:32:19]MH_I2C_Read... [09:32:19]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 13 [09:32:19]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:32:19]wFMCommunicate OK [09:32:19]SAM_PROTO_GetShiftState done [09:32:19]FM_GetShiftState done [09:32:19]opened in 1729989505 [09:32:19]opened+sec_in_day 1730075905 [09:32:19]quantity*price = 13000 [09:32:19]sum+1 = 13001 [09:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 49 27.10.2024 09:32 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60517 ФПД: 89756381428731 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093219&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60517&fm=89756381428731&tin=02508201610067®Number=0000000000091622&sum=13000 0 [09:32:20]StoreToDocumentArchive [09:32:20]shift 532 fd 60517 [09:32:20]save to /storage/0532/doc_00060517 [09:32:20]save last doc name /storage/0532/doc_00060517 to /storage/kkm_last_doc_name [09:32:20]save OK [09:32:20]Clear old archive folders... [09:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:32:20]tlvbuf is 001C98E0 [09:32:20]SAM_PROTO_ClearQueue [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 09 00 00 [09:32:20]Write to MH i2c: E2 08 00 02 06 80 09 00 00 00 00 00 00 7A [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]SAM_PROTO_ClearQueue done [09:32:20]KKMCreateOFDPacket [09:32:20]OFDProtocolAddRootSTLVToBuf [09:32:20]FM_MakeSignedData [09:32:20]FM_MakeSignedData [09:32:20]SAM_PROTO_SignData [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 01 02 [09:32:20]Write to MH i2c: E2 08 00 03 06 80 0D 01 02 00 00 00 00 82 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]wFMCommunicate request_size=255 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [09:32:20]Write to MH i2c: E2 02 01 04 06 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 03 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]wFMCommunicate request_size=41 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EC 00 00 35 04 06 00 51 A2 09 3B 3B FB [09:32:20]Write to MH i2c: E2 2C 00 05 06 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EC 00 00 35 04 06 00 51 A2 09 3B 3B FB 00 00 16 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [09:32:20]RAPDU: 90 00 [09:32:20]wFMCommunicate OK [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 0D 03 02 [09:32:20]Write to MH i2c: E2 08 00 06 06 80 0D 03 02 00 00 00 00 87 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 0B 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 0B 00 06 06 00 FF 51 6F F4 C2 14 9C 00 90 00 AD [09:32:20]RAPDU: FF 51 6F F4 C2 14 9C 00 90 00 [09:32:20]wFMCommunicate OK [09:32:20]SAM_PROTO_SignData done [09:32:20]FM_MakeSignedData done [09:32:20]CreateOFDProtocolMessage [09:32:20]wFMCommunicate request_size=4 [09:32:20]MH_SAM_APDU [09:32:20]CAPDU: 80 11 00 00 [09:32:20]Write to MH i2c: E2 08 00 07 06 80 11 00 00 00 00 00 00 87 [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:20]Read from MH i2c: E2 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 17 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: E2 17 00 07 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 DE [09:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:32:20]wFMCommunicate OK [09:32:20]CreateOFDProtocolMessage done [09:32:20]OFDSenderStorePacket 60517 [09:32:20]StoreOFDPacket docnum=60517 [09:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 8F D1 26 01 96 EA 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EC 00 00 35 04 06 00 51 A2 09 3B 3B FB FF 51 6F F4 C2 14 9C 00 [09:32:20]CheckFolder [09:32:20]dirname=/storage/ofd_packets [09:32:20]CheckFolder done [09:32:20]ProducePacketName [09:32:20]name=ofd_packets/00060517 [09:32:20]NVStorageSaveData ofd_packets/00060517 [09:32:20]File name is /storage/ofd_packets/00060517 [09:32:20]Write 332 bytes [09:32:20]NVStorageSaveData done [09:32:20]OFDSenderStorePacket done [09:32:20]KKMCreateOFDPacket done [09:32:20]NVStorageSaveData kkm_last_timestamp [09:32:20]File name is /storage/kkm_last_timestamp [09:32:20]Write 4 bytes [09:32:20]NVStorageSaveData done [09:32:20]ExternCall_PrintAddStr [09:32:20]wPrintStart [09:32:20]Write to MH i2c: 01 00 00 08 06 0E [09:32:20]Write i2c OK [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 07 00 [09:32:20]MH_I2C_Read... [09:32:20]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 FF 0F 23 [09:32:20]RasterBufferAndPrint [09:32:20]line Счет N : (3)200151 [09:32:20]line ИНН: 02508201610067 [09:32:20]line Контрольно-Кассовый Чек [09:32:20]line ПРОДАЖА [09:32:20]line Товар: 2000036220012 [09:32:20]line Кофе Капучино XL(GABB TRADE) [09:32:20]line 1.000 * 130.00 [09:32:20]line = 130.00 [09:32:20]line НДС 12% НСП 1% [09:32:20]line > о реализуемом товаре [09:32:20]line ИТОГО: 130.00 [09:32:20]line НСП 1% : 1.15 [09:32:20]line НДС 12% : 13.80 [09:32:20]line Наличными: 0.00 [09:32:20]line Безнал.: 130.00 [09:32:20]line Место: АЗС № 87 "Партнер Нефть" [09:32:20]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:32:20]line СНО: Общий режим [09:32:20]line Чек 49 27.10.2024 09:32 [09:32:20]line Смена: 532 ФФД: 1.0 [09:32:20]line ЗНМ: 0300000084 [09:32:20]line РНМ: 0000000000091622 [09:32:20]line Версия ККМ: 001 [09:32:20]line Платежная система: Mbank [09:32:20]line ФМ: 0000000000874674 [09:32:20]line ФД: 60517 [09:32:20]line ФПД: 89756381428731 [09:32:21]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093219&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60517&fm=89756381428731&tin=02508201610067®Number=0000000000091622&sum=13000 [09:32:21]line 0 [09:32:21]OFD Sender: Processing packet 60517 [packets to send 30, broken 29] [09:32:21]ProducePacketName [09:32:21]name=ofd_packets/00060517 [09:32:21]OFD Sender: To server: pG, [09:32:21]CommunicateWithHost lk.salyk.kg:30040 [09:32:21]ConnectInit lk.salyk.kg [09:32:21]written 0, free lines is 4095 [09:32:21]Connected sock=10 [09:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 8F D1 26 01 96 EA 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 A3 08 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 65 EC 00 00 35 04 06 00 51 A2 09 3B 3B FB FF 51 6F F4 C2 14 9C 00 [09:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E4 9D 47 00 FA 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 36 37 34 10 04 04 00 65 EC 00 00 F4 03 04 00 8B AE 1D 67 B6 04 01 00 00 22 36 4C D6 F0 E9 AE D4 [09:32:21]CommunicateWithHost err = 0 [09:32:21]CheckOFDResponse [09:32:21]1017 (14) - 77093643461234 [09:32:21]1041 (16) - 0000000000874674 [09:32:21]1040 (4) - 60517 [09:32:21]1012 (4) - 27.10.2024 03:07 [09:32:21]1206 (1) - 0 [09:32:21]OFD Sender: Remove packet 60517 [09:32:21]ProducePacketName [09:32:21]name=ofd_packets/00060517 [09:32:21]NVStorageDeleteData [09:32:21]Write to MH i2c: 01 00 00 32 06 38 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 D5 0C 20 [09:32:21]RasterBufferAndPrint [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]line [09:32:21]written 0, free lines is 3293 [09:32:21]MH_Cut [09:32:21]Write to MH i2c: D1 01 00 39 06 01 11 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: D1 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: D1 01 00 [09:32:21]MH_I2C_Read... [09:32:21]Read from MH i2c: D1 01 00 39 06 00 10 [09:32:21]Write to MH i2c: 01 00 00 3A 06 40 [09:32:21]Write i2c OK [09:32:21]MH_I2C_Read... [09:32:21]OFD Sender: No OFD packet to send [09:32:22]*** Cut start [09:32:22]*** Partial cut [09:32:22]*** CUTSNS_PIN = 1 [09:32:22]*** CUTSNS_PIN = 0 [09:32:22]*** Brake cut motor [09:32:23]Read from MH i2c: 01 [09:32:23]MH_I2C_Read... [09:32:23]*** Stop cut motor [09:32:23]*** Cut end [09:32:23]Read from MH i2c: 01 07 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 FF 0F 55 [09:32:23]process_action close_receipt done [09:32:23]requested_data is exist [09:32:23]produce_requested_data [09:32:23]requested_item fm.sn is exist - process it [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 11 00 00 [09:32:23]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 17 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 12 [09:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:32:23]wFMCommunicate OK [09:32:23]requested_item fd.num is exist - process it [09:32:23]SAM_PROTO_GetFieldsCounters [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 13 00 00 [09:32:23]Write to MH i2c: E2 08 00 3C 06 80 13 00 00 00 00 00 00 BE [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 62 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 62 00 3C 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 65 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [09:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 65 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:23]wFMCommunicate OK [09:32:23]SAM_PROTO_GetFieldsCounters done [09:32:23]requested_item shift.num is exist - process it [09:32:23]requested_item shift.opened is exist - process it [09:32:23]req_shift_opened [09:32:23]FM_GetShiftState [09:32:23]SAM_PROTO_GetShiftState [09:32:23]wFMCommunicate request_size=4 [09:32:23]MH_SAM_APDU [09:32:23]CAPDU: 80 13 01 00 [09:32:23]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:23]Read from MH i2c: E2 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 0E 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 5C [09:32:23]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:32:23]wFMCommunicate OK [09:32:23]SAM_PROTO_GetShiftState done [09:32:23]FM_GetShiftState done [09:32:23]req_shift_opened done [09:32:23]requested_item shift.open_date is exist - process it [09:32:23]req_shift_open_date [09:32:23]req_shift_open_date done [09:32:23]produce_requested_data done [09:32:23]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60517,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:32:23]process_action_free close_receipt [09:32:23]json_value_free [09:32:23]json_value_free done [09:32:23]process_json_proto returns [09:32:23]Send response to host [09:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60517,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:32:23]free response buf [09:32:23]execute_script done [09:32:23]execute_script returns [09:32:23]free content buf [09:32:23]Sock 7.Close socket [09:32:23]Sock 7.Thread stoped [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:07]accept exits with 9 [09:34:07]New connection [09:34:07]New thread 3067219300 created [09:34:07]Thread 3067362660 joined [09:34:07]Waiting for new connection... [09:34:07] Sock 9.Parse request [09:34:07]Sock 9.Check first char [09:34:07]Sock 9.First char is OK [09:34:07]request: POST /json_proto HTTP/1.0 [09:34:07]Method: POST [09:34:07]URL: /json_proto [09:34:07]Method is POST - this is cgi request [09:34:07]url: /json_proto [09:34:07]query_string will be loaded in cgi processing [09:34:07]execute_cgi json_proto POST (null) [09:34:07]execute_cgi path=json_proto method=POST [09:34:07]POST find Content-Length [09:34:07]Host: 172.17.42.196:8080 [09:34:07]Content-Length: 678 [09:34:07]Content-Type: application/json [09:34:07] [09:34:07]POST finish read [09:34:07]Found Content-Length = 678 [09:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:07]execute_script... [09:34:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:07]POST & json_proto [09:34:07]process_json_proto [09:34:07]json parsed OK: [09:34:07]protocol is kg_v1.0 [09:34:07]action value=close_receipt [09:34:07]process_action close_receipt [09:34:07]cmd_close_receipt [09:34:07]MH_GetDate [09:34:07]Write to MH i2c: F0 00 00 3E 06 33 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: F0 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: F0 09 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: F0 09 00 3E 06 00 10 09 1E 67 FF C4 6B 64 6C [09:34:07]GetLastDocTimeStamp 1730021539 [09:34:07]current date 1730021648 [09:34:07]FM_GetShiftState [09:34:07]SAM_PROTO_GetShiftState [09:34:07]wFMCommunicate request_size=4 [09:34:07]MH_SAM_APDU [09:34:07]CAPDU: 80 13 01 00 [09:34:07]Write to MH i2c: E2 08 00 3F 06 80 13 01 00 00 00 00 00 C2 [09:34:07]Write i2c OK [09:34:07]MH_I2C_Read... [09:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:07]Read from MH i2c: E2 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 0E 00 [09:34:07]MH_I2C_Read... [09:34:07]Read from MH i2c: E2 0E 00 3F 06 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 5E [09:34:07]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:34:07]wFMCommunicate OK [09:34:07]SAM_PROTO_GetShiftState done [09:34:07]FM_GetShiftState done [09:34:07]opened in 1729989505 [09:34:07]opened+sec_in_day 1730075905 [09:34:07]quantity*price = 60009 [09:34:07]sum+1 = 60010 [09:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 50 27.10.2024 09:34 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60518 ФПД: 98475972566997 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093408&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60518&fm=98475972566997&tin=02508201610067®Number=0000000000091622&sum=60000 [09:34:09]StoreToDocumentArchive [09:34:09]shift 532 fd 60518 [09:34:09]save to /storage/0532/doc_00060518 [09:34:09]save last doc name /storage/0532/doc_00060518 to /storage/kkm_last_doc_name [09:34:09]save OK [09:34:09]Clear old archive folders... [09:34:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:09]tlvbuf is 001C8A50 [09:34:09]SAM_PROTO_ClearQueue [09:34:09]wFMCommunicate request_size=4 [09:34:09]MH_SAM_APDU [09:34:09]CAPDU: 80 09 00 00 [09:34:09]Write to MH i2c: E2 08 00 4C 06 80 09 00 00 00 00 00 00 C4 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:09]Read from MH i2c: E2 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [09:34:09]RAPDU: 90 00 [09:34:09]wFMCommunicate OK [09:34:09]SAM_PROTO_ClearQueue done [09:34:09]KKMCreateOFDPacket [09:34:09]OFDProtocolAddRootSTLVToBuf [09:34:09]FM_MakeSignedData [09:34:09]FM_MakeSignedData [09:34:09]SAM_PROTO_SignData [09:34:09]wFMCommunicate request_size=4 [09:34:09]MH_SAM_APDU [09:34:09]CAPDU: 80 0D 01 02 [09:34:09]Write to MH i2c: E2 08 00 4D 06 80 0D 01 02 00 00 00 00 CC [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:09]Read from MH i2c: E2 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [09:34:09]RAPDU: 90 00 [09:34:09]wFMCommunicate OK [09:34:09]wFMCommunicate request_size=255 [09:34:09]MH_SAM_APDU [09:34: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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 10 09 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EC 00 00 35 04 06 00 59 [09:34:09]Write to MH i2c: E2 02 01 4E 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 10 09 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EC 00 00 35 04 06 00 59 00 00 C7 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:09]Read from MH i2c: E2 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [09:34:09]RAPDU: 90 00 [09:34:09]wFMCommunicate OK [09:34:09]wFMCommunicate request_size=10 [09:34:09]MH_SAM_APDU [09:34:09]CAPDU: 80 0D 02 02 05 90 39 5D 1F D5 [09:34:09]Write to MH i2c: E2 0D 00 4F 06 80 0D 02 02 05 00 90 39 5D 1F D5 00 00 F3 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:09]Read from MH i2c: E2 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [09:34:09]RAPDU: 90 00 [09:34:09]wFMCommunicate OK [09:34:09]wFMCommunicate request_size=4 [09:34:09]MH_SAM_APDU [09:34:09]CAPDU: 80 0D 03 02 [09:34:09]Write to MH i2c: E2 08 00 50 06 80 0D 03 02 00 00 00 00 D1 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:09]Read from MH i2c: E2 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 0B 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 0B 00 50 06 00 0D 61 9B 84 F1 72 DC 47 90 00 E5 [09:34:09]RAPDU: 0D 61 9B 84 F1 72 DC 47 90 00 [09:34:09]wFMCommunicate OK [09:34:09]SAM_PROTO_SignData done [09:34:09]FM_MakeSignedData done [09:34:09]CreateOFDProtocolMessage [09:34:09]wFMCommunicate request_size=4 [09:34:09]MH_SAM_APDU [09:34:09]CAPDU: 80 11 00 00 [09:34:09]Write to MH i2c: E2 08 00 51 06 80 11 00 00 00 00 00 00 D1 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:09]Read from MH i2c: E2 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 17 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: E2 17 00 51 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 28 [09:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:34:09]wFMCommunicate OK [09:34:09]CreateOFDProtocolMessage done [09:34:09]OFDSenderStorePacket 60518 [09:34:09]StoreOFDPacket docnum=60518 [09:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 E8 67 07 01 E8 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 10 09 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EC 00 00 35 04 06 00 59 90 39 5D 1F D5 0D 61 9B 84 F1 72 DC 47 [09:34:09]CheckFolder [09:34:09]dirname=/storage/ofd_packets [09:34:09]CheckFolder done [09:34:09]ProducePacketName [09:34:09]name=ofd_packets/00060518 [09:34:09]NVStorageSaveData ofd_packets/00060518 [09:34:09]File name is /storage/ofd_packets/00060518 [09:34:09]Write 301 bytes [09:34:09]NVStorageSaveData done [09:34:09]OFDSenderStorePacket done [09:34:09]KKMCreateOFDPacket done [09:34:09]NVStorageSaveData kkm_last_timestamp [09:34:09]File name is /storage/kkm_last_timestamp [09:34:09]Write 4 bytes [09:34:09]NVStorageSaveData done [09:34:09]ExternCall_PrintAddStr [09:34:09]wPrintStart [09:34:09]Write to MH i2c: 01 00 00 52 06 58 [09:34:09]Write i2c OK [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 07 00 [09:34:09]MH_I2C_Read... [09:34:09]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 FF 0F 6D [09:34:09]RasterBufferAndPrint [09:34:09]line Счет N : (1)3311491 [09:34:09]line ИНН: 02508201610067 [09:34:09]line Контрольно-Кассовый Чек [09:34:09]line ПРОДАЖА [09:34:09]line ТРК (МРК, ГНК) : 12 [09:34:09]line Товар: 2710124130 [09:34:09]line Аи-92-К-4 [09:34:09]line 8.970 * 66.90 [09:34:09]line = 600.09 [09:34:09]line НДС 12% НСП 1% [09:34:09]line > о реализуемом товаре [09:34:09]line ОКРУГЛЕНИЕ: -0.09 [09:34:09]line ИТОГО: 600.00 [09:34:09]line Внесено: 600.00 [09:34:09]line СДАЧА: 0.00 [09:34:09]line НСП 1% : 5.31 [09:34:09]line НДС 12% : 63.73 [09:34:09]line Наличными: 600.00 [09:34:09]line Безнал.: 0.00 [09:34:09]line Место: АЗС № 87 "Партнер Нефть" [09:34:09]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:34:09]line СНО: Общий режим [09:34:09]line Чек 50 27.10.2024 09:34 [09:34:09]line Смена: 532 ФФД: 1.0 [09:34:09]line ЗНМ: 0300000084 [09:34:09]line РНМ: 0000000000091622 [09:34:09]line Версия ККМ: 001 [09:34:09]line ФМ: 0000000000874674 [09:34:09]line ФД: 60518 [09:34:09]line ФПД: 98475972566997 [09:34:09]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093408&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60518&fm=98475972566997&tin=02508201610067®Number=0000000000091622&sum=60000 [09:34:09]written 0, free lines is 4095 [09:34:09]OFD Sender: Processing packet 60518 [packets to send 30, broken 29] [09:34:09]ProducePacketName [09:34:09]name=ofd_packets/00060518 [09:34:09]OFD Sender: To server: pG, [09:34:09]CommunicateWithHost lk.salyk.kg:30040 [09:34:09]ConnectInit lk.salyk.kg [09:34:09]Connected sock=11 [09:34: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 36 37 34 0F 01 00 00 E8 67 07 01 E8 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 10 09 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EC 00 00 35 04 06 00 59 90 39 5D 1F D5 0D 61 9B 84 F1 72 DC 47 [09:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 79 77 47 00 B8 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 66 EC 00 00 F4 03 04 00 F8 AE 1D 67 B6 04 01 00 00 4B 9D 3B FA 9E DB EF 8D [09:34:09]CommunicateWithHost err = 0 [09:34:09]CheckOFDResponse [09:34:09]1017 (14) - 77093643461234 [09:34:09]1041 (16) - 0000000000874674 [09:34:09]1040 (4) - 60518 [09:34:09]1012 (4) - 27.10.2024 03:09 [09:34:09]1206 (1) - 0 [09:34:09]OFD Sender: Remove packet 60518 [09:34:09]ProducePacketName [09:34:09]name=ofd_packets/00060518 [09:34:09]NVStorageDeleteData [09:34:10]Write to MH i2c: 01 00 00 7D 06 83 [09:34:10]Write i2c OK [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: 01 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: 01 07 00 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: 01 07 00 7D 06 00 00 00 00 00 E1 0C 77 [09:34:10]RasterBufferAndPrint [09:34:10]line [09:34:10]line [09:34:10]line [09:34:10]line [09:34:10]line [09:34:10]written 0, free lines is 3302 [09:34:10]MH_Cut [09:34:10]Write to MH i2c: D1 01 00 84 06 01 5C [09:34:10]Write i2c OK [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: D1 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: D1 01 00 [09:34:10]MH_I2C_Read... [09:34:10]Read from MH i2c: D1 01 00 84 06 00 5B [09:34:10]Write to MH i2c: 01 00 00 85 06 8B [09:34:10]Write i2c OK [09:34:10]MH_I2C_Read... [09:34:10]OFD Sender: No OFD packet to send [09:34:10]*** Cut start [09:34:10]*** Partial cut [09:34:10]*** CUTSNS_PIN = 1 [09:34:10]*** CUTSNS_PIN = 0 [09:34:11]*** Brake cut motor [09:34:11]Read from MH i2c: 01 [09:34:11]MH_I2C_Read... [09:34:11]*** Stop cut motor [09:34:11]*** Cut end [09:34:11]Read from MH i2c: 01 07 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [09:34:11]process_action close_receipt done [09:34:11]requested_data is exist [09:34:11]produce_requested_data [09:34:11]requested_item fm.sn is exist - process it [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 11 00 00 [09:34:11]Write to MH i2c: E2 08 00 86 06 80 11 00 00 00 00 00 00 06 [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 17 00 86 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5D [09:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:34:11]wFMCommunicate OK [09:34:11]requested_item fd.num is exist - process it [09:34:11]SAM_PROTO_GetFieldsCounters [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 00 00 [09:34:11]Write to MH i2c: E2 08 00 87 06 80 13 00 00 00 00 00 00 09 [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 62 00 87 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 66 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [09:34:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 66 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetFieldsCounters done [09:34:11]requested_item shift.num is exist - process it [09:34:11]requested_item shift.opened is exist - process it [09:34:11]req_shift_opened [09:34:11]FM_GetShiftState [09:34:11]SAM_PROTO_GetShiftState [09:34:11]wFMCommunicate request_size=4 [09:34:11]MH_SAM_APDU [09:34:11]CAPDU: 80 13 01 00 [09:34:11]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [09:34:11]Write i2c OK [09:34:11]MH_I2C_Read... [09:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:11]Read from MH i2c: E2 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 [09:34:11]MH_I2C_Read... [09:34:11]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 A7 [09:34:11]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:34:11]wFMCommunicate OK [09:34:11]SAM_PROTO_GetShiftState done [09:34:11]FM_GetShiftState done [09:34:11]req_shift_opened done [09:34:11]requested_item shift.open_date is exist - process it [09:34:11]req_shift_open_date [09:34:11]req_shift_open_date done [09:34:11]produce_requested_data done [09:34:11]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60518,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:34:11]process_action_free close_receipt [09:34:11]json_value_free [09:34:11]json_value_free done [09:34:11]process_json_proto returns [09:34:11]Send response to host [09:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60518,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:34:11]free response buf [09:34:11]execute_script done [09:34:11]execute_script returns [09:34:11]free content buf [09:34:11]Sock 9.Close socket [09:34:11]Sock 9.Thread stoped [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:38:59]accept exits with 7 [09:38:59]New connection [09:38:59]New thread 3067362660 created [09:38:59]Thread 3067219300 joined [09:38:59]Waiting for new connection... [09:38:59] Sock 7.Parse request [09:38:59]Sock 7.Check first char [09:38:59]Sock 7.First char is OK [09:38:59]request: POST /json_proto HTTP/1.0 [09:38:59]Method: POST [09:38:59]URL: /json_proto [09:38:59]Method is POST - this is cgi request [09:38:59]url: /json_proto [09:38:59]query_string will be loaded in cgi processing [09:38:59]execute_cgi json_proto POST (null) [09:38:59]execute_cgi path=json_proto method=POST [09:38:59]POST find Content-Length [09:38:59]Host: 172.17.42.196:8080 [09:38:59]Content-Length: 1033 [09:38:59]Content-Type: application/json [09:38:59] [09:38:59]POST finish read [09:38:59]Found Content-Length = 1033 [09:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200152", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:59]execute_script... [09:38:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200152", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:59]POST & json_proto [09:38:59]process_json_proto [09:38:59]json parsed OK: [09:38:59]protocol is kg_v1.0 [09:38:59]action value=close_receipt [09:38:59]process_action close_receipt [09:38:59]cmd_close_receipt [09:38:59]MH_GetDate [09:38:59]Write to MH i2c: F0 00 00 89 06 7E [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: F0 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: F0 09 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: F0 09 00 89 06 00 33 0A 1E 67 FF C4 6B 64 DB [09:38:59]GetLastDocTimeStamp 1730021648 [09:38:59]current date 1730021939 [09:38:59]FM_GetShiftState [09:38:59]SAM_PROTO_GetShiftState [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 13 01 00 [09:38:59]Write to MH i2c: E2 08 00 8A 06 80 13 01 00 00 00 00 00 0D [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0E 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0E 00 8A 06 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 A9 [09:38:59]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:38:59]wFMCommunicate OK [09:38:59]SAM_PROTO_GetShiftState done [09:38:59]FM_GetShiftState done [09:38:59]opened in 1729989505 [09:38:59]opened+sec_in_day 1730075905 [09:38:59]quantity*price = 11900 [09:38:59]sum+1 = 11901 [09:38:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 51 27.10.2024 09:38 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60519 ФПД: 110234493618612 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093859&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60519&fm=110234493618612&tin=02508201610067®Number=0000000000091622&sum=14000 0 [09:39:00]StoreToDocumentArchive [09:39:00]shift 532 fd 60519 [09:39:00]save to /storage/0532/doc_00060519 [09:39:00]save last doc name /storage/0532/doc_00060519 to /storage/kkm_last_doc_name [09:39:00]save OK [09:39:00]Clear old archive folders... [09:39:00]ProcessDocumentItem done err = 0, tmpTLVsize=383 [09:39:00]tlvbuf is 001FF400 [09:39:00]SAM_PROTO_ClearQueue [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 09 00 00 [09:39:00]Write to MH i2c: E2 08 00 97 06 80 09 00 00 00 00 00 00 0F [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]SAM_PROTO_ClearQueue done [09:39:00]KKMCreateOFDPacket [09:39:00]OFDProtocolAddRootSTLVToBuf [09:39:00]FM_MakeSignedData [09:39:00]FM_MakeSignedData [09:39:00]SAM_PROTO_SignData [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 01 02 [09:39:00]Write to MH i2c: E2 08 00 98 06 80 0D 01 02 00 00 00 00 17 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]wFMCommunicate request_size=255 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 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 [09:39:00]Write to MH i2c: E2 02 01 99 06 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 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 4E [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]OFD Sender: No OFD packet to send [09:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]wFMCommunicate request_size=142 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 33 0A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 67 EC 00 00 35 04 06 00 64 41 F7 D5 89 B4 [09:39:00]Write to MH i2c: E2 91 00 9A 06 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 33 0A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 67 EC 00 00 35 04 06 00 64 41 F7 D5 89 B4 00 00 1E [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [09:39:00]RAPDU: 90 00 [09:39:00]wFMCommunicate OK [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 0D 03 02 [09:39:00]Write to MH i2c: E2 08 00 9B 06 80 0D 03 02 00 00 00 00 1C [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0B 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0B 00 9B 06 00 88 96 79 44 11 49 B5 39 90 00 40 [09:39:00]RAPDU: 88 96 79 44 11 49 B5 39 90 00 [09:39:00]wFMCommunicate OK [09:39:00]SAM_PROTO_SignData done [09:39:00]FM_MakeSignedData done [09:39:00]CreateOFDProtocolMessage [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 11 00 00 [09:39:00]Write to MH i2c: E2 08 00 9C 06 80 11 00 00 00 00 00 00 1C [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 17 00 [09:39:01]MH_I2C_Read... [09:39:01]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 36 37 34 90 00 73 [09:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:39:01]wFMCommunicate OK [09:39:01]CreateOFDProtocolMessage done [09:39:01]OFDSenderStorePacket 60519 [09:39:01]StoreOFDPacket docnum=60519 [09:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 93 01 00 00 9E 0F 8B 01 EC 8A 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 33 0A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 67 EC 00 00 35 04 06 00 64 41 F7 D5 89 B4 88 96 79 44 11 49 B5 39 [09:39:01]CheckFolder [09:39:01]dirname=/storage/ofd_packets [09:39:01]CheckFolder done [09:39:01]ProducePacketName [09:39:01]name=ofd_packets/00060519 [09:39:01]NVStorageSaveData ofd_packets/00060519 [09:39:01]File name is /storage/ofd_packets/00060519 [09:39:01]Write 433 bytes [09:39:01]NVStorageSaveData done [09:39:01]OFDSenderStorePacket done [09:39:01]KKMCreateOFDPacket done [09:39:01]NVStorageSaveData kkm_last_timestamp [09:39:01]File name is /storage/kkm_last_timestamp [09:39:01]Write 4 bytes [09:39:01]NVStorageSaveData done [09:39:01]ExternCall_PrintAddStr [09:39:01]wPrintStart [09:39:01]Write to MH i2c: 01 00 00 9D 06 A3 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 07 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 07 00 9D 06 00 00 00 00 00 FF 0F B8 [09:39:01]RasterBufferAndPrint [09:39:01]line Счет N : (3)200152 [09:39:01]line ИНН: 02508201610067 [09:39:01]line Контрольно-Кассовый Чек [09:39:01]line ПРОДАЖА [09:39:01]line Товар: 4870001570071 [09:39:01]line Напиток Pepsi 1л [09:39:01]line 1.000 * 119.00 [09:39:01]line = 119.00 [09:39:01]line НДС 12% НСП 1% [09:39:01]line > о реализуемом товаре [09:39:01]line Товар: 2000053020015 [09:39:01]line Бумажные стаканы 250мл 1шт [09:39:01]line 3.000 * 7.00 [09:39:01]line = 21.00 [09:39:01]line НДС 12% НСП 1% [09:39:01]line > о реализуемом товаре [09:39:01]line ИТОГО: 140.00 [09:39:01]line НСП 1% : 1.24 [09:39:01]line НДС 12% : 14.87 [09:39:01]line Наличными: 0.00 [09:39:01]line Безнал.: 140.00 [09:39:01]line Место: АЗС № 87 "Партнер Нефть" [09:39:01]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [09:39:01]line СНО: Общий режим [09:39:01]line Чек 51 27.10.2024 09:38 [09:39:01]line Смена: 532 ФФД: 1.0 [09:39:01]line ЗНМ: 0300000084 [09:39:01]line РНМ: 0000000000091622 [09:39:01]line Версия ККМ: 001 [09:39:01]line Платежная система: Mbank [09:39:01]line ФМ: 0000000000874674 [09:39:01]line ФД: 60519 [09:39:01]line ФПД: 110234493618612 [09:39:01]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093859&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60519&fm=110234493618612&tin=02508201610067®Number=0000000000091622&sum=14000 [09:39:01]OFD Sender: Processing packet 60519 [packets to send 30, broken 29] [09:39:01]ProducePacketName [09:39:01]name=ofd_packets/00060519 [09:39:01]OFD Sender: To server: pG, [09:39:01]CommunicateWithHost lk.salyk.kg:30040 [09:39:01]ConnectInit lk.salyk.kg [09:39:01]line 0 [09:39:01]written 0, free lines is 4095 [09:39:01]Connected sock=11 [09:39: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 36 37 34 93 01 00 00 9E 0F 8B 01 EC 8A 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 33 0A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 67 EC 00 00 35 04 06 00 64 41 F7 D5 89 B4 88 96 79 44 11 49 B5 39 [09:39:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 C4 E2 47 00 40 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 36 37 34 10 04 04 00 67 EC 00 00 F4 03 04 00 1C B0 1D 67 B6 04 01 00 00 0E 15 F0 55 3A F9 D5 BA [09:39:01]CommunicateWithHost err = 0 [09:39:01]CheckOFDResponse [09:39:01]1017 (14) - 77093643461234 [09:39:01]1041 (16) - 0000000000874674 [09:39:01]1040 (4) - 60519 [09:39:01]1012 (4) - 27.10.2024 03:14 [09:39:01]1206 (1) - 0 [09:39:01]OFD Sender: Remove packet 60519 [09:39:01]ProducePacketName [09:39:01]name=ofd_packets/00060519 [09:39:01]NVStorageDeleteData [09:39:01]Write to MH i2c: 01 00 00 CD 06 D3 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 07 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: 01 07 00 CD 06 00 00 00 00 00 70 0C 56 [09:39:01]RasterBufferAndPrint [09:39:01]line [09:39:01]line [09:39:01]line [09:39:01]line [09:39:01]line [09:39:01]written 0, free lines is 3190 [09:39:01]MH_Cut [09:39:01]Write to MH i2c: D1 01 00 D4 06 01 AC [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: D1 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: D1 01 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: D1 01 00 D4 06 00 AB [09:39:01]Write to MH i2c: 01 00 00 D5 06 DB [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:02]OFD Sender: No OFD packet to send [09:39:02]*** Cut start [09:39:02]*** Partial cut [09:39:02]*** CUTSNS_PIN = 1 [09:39:02]*** CUTSNS_PIN = 0 [09:39:03]*** Brake cut motor [09:39:03]Read from MH i2c: 01 [09:39:03]MH_I2C_Read... [09:39:03]*** Stop cut motor [09:39:03]*** Cut end [09:39:03]Read from MH i2c: 01 07 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: 01 07 00 D5 06 00 00 00 00 00 FF 0F F0 [09:39:03]process_action close_receipt done [09:39:03]requested_data is exist [09:39:03]produce_requested_data [09:39:03]requested_item fm.sn is exist - process it [09:39:03]wFMCommunicate request_size=4 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 11 00 00 [09:39:03]Write to MH i2c: E2 08 00 D6 06 80 11 00 00 00 00 00 00 56 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 17 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 17 00 D6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AD [09:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [09:39:03]wFMCommunicate OK [09:39:03]requested_item fd.num is exist - process it [09:39:03]SAM_PROTO_GetFieldsCounters [09:39:03]wFMCommunicate request_size=4 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 13 00 00 [09:39:03]Write to MH i2c: E2 08 00 D7 06 80 13 00 00 00 00 00 00 59 [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 62 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 62 00 D7 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 67 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [09:39: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 67 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:03]wFMCommunicate OK [09:39:03]SAM_PROTO_GetFieldsCounters done [09:39:03]requested_item shift.num is exist - process it [09:39:03]requested_item shift.opened is exist - process it [09:39:03]req_shift_opened [09:39:03]FM_GetShiftState [09:39:03]SAM_PROTO_GetShiftState [09:39:03]wFMCommunicate request_size=4 [09:39:03]MH_SAM_APDU [09:39:03]CAPDU: 80 13 01 00 [09:39:03]Write to MH i2c: E2 08 00 D8 06 80 13 01 00 00 00 00 00 5B [09:39:03]Write i2c OK [09:39:03]MH_I2C_Read... [09:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:03]Read from MH i2c: E2 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 0E 00 [09:39:03]MH_I2C_Read... [09:39:03]Read from MH i2c: E2 0E 00 D8 06 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F7 [09:39:03]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [09:39:03]wFMCommunicate OK [09:39:03]SAM_PROTO_GetShiftState done [09:39:03]FM_GetShiftState done [09:39:03]req_shift_opened done [09:39:03]requested_item shift.open_date is exist - process it [09:39:03]req_shift_open_date [09:39:03]req_shift_open_date done [09:39:03]produce_requested_data done [09:39:03]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60519,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [09:39:03]process_action_free close_receipt [09:39:03]json_value_free [09:39:03]json_value_free done [09:39:03]process_json_proto returns [09:39:03]Send response to host [09:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60519,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [09:39:03]free response buf [09:39:03]execute_script done [09:39:03]execute_script returns [09:39:03]free content buf [09:39:03]Sock 7.Close socket [09:39:03]Sock 7.Thread stoped [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:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:11]ConnectInit Can't connect to host [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19: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:10]accept exits with 10 [10:21:10]New connection [10:21:10]New thread 3067219300 created [10:21:10]Thread 3067362660 joined [10:21:10]Waiting for new connection... [10:21:10] Sock 10.Parse request [10:21:10]Sock 10.Check first char [10:21:10]Sock 10.First char is OK [10:21:10]request: POST /json_proto HTTP/1.0 [10:21:10]Method: POST [10:21:10]URL: /json_proto [10:21:10]Method is POST - this is cgi request [10:21:10]url: /json_proto [10:21:10]query_string will be loaded in cgi processing [10:21:10]execute_cgi json_proto POST (null) [10:21:10]execute_cgi path=json_proto method=POST [10:21:10]POST find Content-Length [10:21:10]Host: 172.17.42.196:8080 [10:21:10]Content-Length: 604 [10:21:10]Content-Type: application/json [10:21:10] [10:21:10]POST finish read [10:21:10]Found Content-Length = 604 [10:21:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200153", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:10]execute_script... [10:21:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200153", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:10]POST & json_proto [10:21:10]process_json_proto [10:21:10]json parsed OK: [10:21:10]protocol is kg_v1.0 [10:21:10]action value=close_receipt [10:21:10]process_action close_receipt [10:21:10]cmd_close_receipt [10:21:10]MH_GetDate [10:21:10]Write to MH i2c: F0 00 00 D9 06 CE [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: F0 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: F0 09 00 [10:21:10]MH_I2C_Read... [10:21:10]Read from MH i2c: F0 09 00 D9 06 00 17 14 1E 67 FF C4 6B 64 19 [10:21:10]GetLastDocTimeStamp 1730021939 [10:21:10]current date 1730024471 [10:21:10]FM_GetShiftState [10:21:10]SAM_PROTO_GetShiftState [10:21:10]wFMCommunicate request_size=4 [10:21:10]MH_SAM_APDU [10:21:10]CAPDU: 80 13 01 00 [10:21:10]Write to MH i2c: E2 08 00 DA 06 80 13 01 00 00 00 00 00 5D [10:21:10]Write i2c OK [10:21:10]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 0E 00 DA 06 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F9 [10:21:11]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_GetShiftState done [10:21:11]FM_GetShiftState done [10:21:11]opened in 1729989505 [10:21:11]opened+sec_in_day 1730075905 [10:21:11]quantity*price = 4400 [10:21:11]sum+1 = 4401 [10:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 44.00 НСП 1% : 0.39 НДС 12% : 4.67 Наличными: 44.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 52 27.10.2024 10:21 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60520 ФПД: 95714113949927 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102111&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60520&fm=95714113949927&tin=02508201610067®Number=0000000000091622&sum=4400 0 [10:21:11]StoreToDocumentArchive [10:21:11]shift 532 fd 60520 [10:21:11]save to /storage/0532/doc_00060520 [10:21:11]save last doc name /storage/0532/doc_00060520 to /storage/kkm_last_doc_name [10:21:11]save OK [10:21:11]Clear old archive folders... [10:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:21:11]tlvbuf is 001C8830 [10:21:11]SAM_PROTO_ClearQueue [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 09 00 00 [10:21:11]Write to MH i2c: E2 08 00 E7 06 80 09 00 00 00 00 00 00 5F [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [10:21:11]RAPDU: 90 00 [10:21:11]wFMCommunicate OK [10:21:11]SAM_PROTO_ClearQueue done [10:21:11]KKMCreateOFDPacket [10:21:11]OFDProtocolAddRootSTLVToBuf [10:21:11]FM_MakeSignedData [10:21:11]FM_MakeSignedData [10:21:11]SAM_PROTO_SignData [10:21:11]wFMCommunicate request_size=4 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 0D 01 02 [10:21:11]Write to MH i2c: E2 08 00 E8 06 80 0D 01 02 00 00 00 00 67 [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:11]Read from MH i2c: E2 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 [10:21:11]MH_I2C_Read... [10:21:11]Read from MH i2c: E2 03 00 E8 06 00 90 00 62 [10:21:11]RAPDU: 90 00 [10:21:11]wFMCommunicate OK [10:21:11]wFMCommunicate request_size=255 [10:21:11]MH_SAM_APDU [10:21:11]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 17 14 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [10:21:11]Write to MH i2c: E2 02 01 E9 06 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 17 14 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 F6 [10:21:11]Write i2c OK [10:21:11]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 E9 06 00 90 00 63 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=34 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EC 00 00 35 04 06 00 57 0D 2D C3 10 E7 [10:21:12]Write to MH i2c: E2 25 00 EA 06 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EC 00 00 35 04 06 00 57 0D 2D C3 10 E7 00 00 CE [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 03 00 EA 06 00 90 00 64 [10:21:12]RAPDU: 90 00 [10:21:12]wFMCommunicate OK [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 0D 03 02 [10:21:12]Write to MH i2c: E2 08 00 EB 06 80 0D 03 02 00 00 00 00 6C [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0B 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 0B 00 EB 06 00 5D 4E 1E E3 17 1E 41 F5 90 00 84 [10:21:12]RAPDU: 5D 4E 1E E3 17 1E 41 F5 90 00 [10:21:12]wFMCommunicate OK [10:21:12]SAM_PROTO_SignData done [10:21:12]FM_MakeSignedData done [10:21:12]CreateOFDProtocolMessage [10:21:12]wFMCommunicate request_size=4 [10:21:12]MH_SAM_APDU [10:21:12]CAPDU: 80 11 00 00 [10:21:12]Write to MH i2c: E2 08 00 EC 06 80 11 00 00 00 00 00 00 6C [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:12]Read from MH i2c: E2 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 17 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: E2 17 00 EC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C3 [10:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:21:12]wFMCommunicate OK [10:21:12]CreateOFDProtocolMessage done [10:21:12]OFDSenderStorePacket 60520 [10:21:12]StoreOFDPacket docnum=60520 [10:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 01 E4 1F 01 28 78 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 17 14 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EC 00 00 35 04 06 00 57 0D 2D C3 10 E7 5D 4E 1E E3 17 1E 41 F5 [10:21:12]CheckFolder [10:21:12]dirname=/storage/ofd_packets [10:21:12]CheckFolder done [10:21:12]ProducePacketName [10:21:12]name=ofd_packets/00060520 [10:21:12]NVStorageSaveData ofd_packets/00060520 [10:21:12]File name is /storage/ofd_packets/00060520 [10:21:12]Write 325 bytes [10:21:12]NVStorageSaveData done [10:21:12]OFDSenderStorePacket done [10:21:12]KKMCreateOFDPacket done [10:21:12]NVStorageSaveData kkm_last_timestamp [10:21:12]File name is /storage/kkm_last_timestamp [10:21:12]Write 4 bytes [10:21:12]NVStorageSaveData done [10:21:12]ExternCall_PrintAddStr [10:21:12]wPrintStart [10:21:12]Write to MH i2c: 01 00 00 ED 06 F3 [10:21:12]Write i2c OK [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 [10:21:12]MH_I2C_Read... [10:21:12]Read from MH i2c: 01 07 00 ED 06 00 00 00 00 00 FF 0F 08 [10:21:12]RasterBufferAndPrint [10:21:12]line Счет N : (3)200153 [10:21:12]line ИНН: 02508201610067 [10:21:12]line Контрольно-Кассовый Чек [10:21:12]line ПРОДАЖА [10:21:12]line Товар: 4870112003925 [10:21:12]line Конд ULKER-Albeni 40gr (6*24) [10:21:12]line 1.000 * 44.00 [10:21:12]line = 44.00 [10:21:12]line НДС 12% НСП 1% [10:21:12]line > о реализуемом товаре [10:21:12]line ИТОГО: 44.00 [10:21:12]line НСП 1% : 0.39 [10:21:12]line НДС 12% : 4.67 [10:21:12]line Наличными: 44.00 [10:21:12]line Безнал.: 0.00 [10:21:12]line Место: АЗС № 87 "Партнер Нефть" [10:21:12]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:21:12]line СНО: Общий режим [10:21:12]line Чек 52 27.10.2024 10:21 [10:21:12]line Смена: 532 ФФД: 1.0 [10:21:12]line ЗНМ: 0300000084 [10:21:12]line РНМ: 0000000000091622 [10:21:12]line Версия ККМ: 001 [10:21:12]line ФМ: 0000000000874674 [10:21:12]line ФД: 60520 [10:21:12]line ФПД: 95714113949927 [10:21:12]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102111&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60520&fm=95714113949927&tin=02508201610067®Number=0000000000091622&sum=4400 [10:21:12]OFD Sender: Processing packet 60520 [packets to send 30, broken 29] [10:21:12]ProducePacketName [10:21:12]name=ofd_packets/00060520 [10:21:12]OFD Sender: To server: pG, [10:21:12]CommunicateWithHost lk.salyk.kg:30040 [10:21:12]ConnectInit lk.salyk.kg [10:21:12]line 0 [10:21:12]written 0, free lines is 4095 [10:21:13]Write to MH i2c: 01 00 00 15 07 1C [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 07 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 F4 0C 23 [10:21:13]RasterBufferAndPrint [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]line [10:21:13]written 0, free lines is 3319 [10:21:13]MH_Cut [10:21:13]Write to MH i2c: D1 01 00 1C 07 01 F5 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 01 00 [10:21:13]MH_I2C_Read... [10:21:13]Read from MH i2c: D1 01 00 1C 07 00 F4 [10:21:13]Write to MH i2c: 01 00 00 1D 07 24 [10:21:13]Write i2c OK [10:21:13]MH_I2C_Read... [10:21:13]*** Cut start [10:21:13]*** Partial cut [10:21:13]*** CUTSNS_PIN = 1 [10:21:13]*** CUTSNS_PIN = 0 [10:21:14]*** Brake cut motor [10:21:14]Read from MH i2c: 01 [10:21:14]MH_I2C_Read... [10:21:14]*** Stop cut motor [10:21:14]*** Cut end [10:21:14]Read from MH i2c: 01 07 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: 01 07 00 1D 07 00 00 00 00 00 FF 0F 39 [10:21:14]process_action close_receipt done [10:21:14]requested_data is exist [10:21:14]produce_requested_data [10:21:14]requested_item fm.sn is exist - process it [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 11 00 00 [10:21:14]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F6 [10:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:21:14]wFMCommunicate OK [10:21:14]requested_item fd.num is exist - process it [10:21:14]SAM_PROTO_GetFieldsCounters [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 13 00 00 [10:21:14]Write to MH i2c: E2 08 00 1F 07 80 13 00 00 00 00 00 00 A2 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 62 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 62 00 1F 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 68 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [10:21:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 68 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:14]wFMCommunicate OK [10:21:14]SAM_PROTO_GetFieldsCounters done [10:21:14]requested_item shift.num is exist - process it [10:21:14]requested_item shift.opened is exist - process it [10:21:14]req_shift_opened [10:21:14]FM_GetShiftState [10:21:14]SAM_PROTO_GetShiftState [10:21:14]wFMCommunicate request_size=4 [10:21:14]MH_SAM_APDU [10:21:14]CAPDU: 80 13 01 00 [10:21:14]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [10:21:14]Write i2c OK [10:21:14]MH_I2C_Read... [10:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:14]Read from MH i2c: E2 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0E 00 [10:21:14]MH_I2C_Read... [10:21:14]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 40 [10:21:14]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:21:14]wFMCommunicate OK [10:21:14]SAM_PROTO_GetShiftState done [10:21:14]FM_GetShiftState done [10:21:14]req_shift_opened done [10:21:14]requested_item shift.open_date is exist - process it [10:21:14]req_shift_open_date [10:21:14]req_shift_open_date done [10:21:14]produce_requested_data done [10:21:14]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60520,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:21:14]process_action_free close_receipt [10:21:14]json_value_free [10:21:14]json_value_free done [10:21:14]process_json_proto returns [10:21:14]Send response to host [10:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60520,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:21:14]free response buf [10:21:14]execute_script done [10:21:14]execute_script returns [10:21:14]free content buf [10:21:14]Sock 10.Close socket [10:21:14]Sock 10.Thread stoped [10:23:25]ConnectInit Can't connect to host [10:23:25]CommunicateWithHost connect error [10:23:25]CommunicateWithHost err = -1 [10:23:25]OFD Sender: Server communicate error [10:23:30]OFD Sender: Processing packet 60520 [packets to send 30, broken 29] [10:23:30]ProducePacketName [10:23:30]name=ofd_packets/00060520 [10:23:30]OFD Sender: To server: pG, [10:23:30]CommunicateWithHost lk.salyk.kg:30040 [10:23:30]ConnectInit lk.salyk.kg [10:23:30]Connected sock=9 [10:23: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 36 37 34 27 01 00 00 01 E4 1F 01 28 78 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 17 14 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 68 EC 00 00 35 04 06 00 57 0D 2D C3 10 E7 5D 4E 1E E3 17 1E 41 F5 [10:23:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 DC 4B 47 00 C6 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 36 37 34 10 04 04 00 68 EC 00 00 F4 03 04 00 89 BA 1D 67 B6 04 01 00 00 82 1F FD 5A 39 40 D9 0A [10:23:30]CommunicateWithHost err = 0 [10:23:30]CheckOFDResponse [10:23:30]1017 (14) - 77093643461234 [10:23:30]1041 (16) - 0000000000874674 [10:23:30]1040 (4) - 60520 [10:23:30]1012 (4) - 27.10.2024 03:59 [10:23:30]1206 (1) - 0 [10:23:30]OFD Sender: Remove packet 60520 [10:23:30]ProducePacketName [10:23:30]name=ofd_packets/00060520 [10:23:30]NVStorageDeleteData [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:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [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:46]accept exits with 7 [10:26:46]New connection [10:26:46]New thread 3067362660 created [10:26:46]Thread 3067219300 joined [10:26:46]Waiting for new connection... [10:26:46] Sock 7.Parse request [10:26:46]Sock 7.Check first char [10:26:46]Sock 7.First char is OK [10:26:46]request: POST /json_proto HTTP/1.0 [10:26:46]Method: POST [10:26:46]URL: /json_proto [10:26:46]Method is POST - this is cgi request [10:26:46]url: /json_proto [10:26:46]query_string will be loaded in cgi processing [10:26:46]execute_cgi json_proto POST (null) [10:26:46]execute_cgi path=json_proto method=POST [10:26:46]POST find Content-Length [10:26:46]Host: 172.17.42.196:8080 [10:26:46]Content-Length: 690 [10:26:46]Content-Type: application/json [10:26:46] [10:26:46]POST finish read [10:26:46]Found Content-Length = 690 [10:26:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200154", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:46]execute_script... [10: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 : (3)200154", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:46]POST & json_proto [10:26:46]process_json_proto [10:26:46]json parsed OK: [10:26:46]protocol is kg_v1.0 [10:26:46]action value=close_receipt [10:26:46]process_action close_receipt [10:26:46]cmd_close_receipt [10:26:46]MH_GetDate [10:26:46]Write to MH i2c: F0 00 00 21 07 17 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: F0 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: F0 09 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: F0 09 00 21 07 00 67 15 1E 67 FF C4 6B 64 B3 [10:26:46]GetLastDocTimeStamp 1730024471 [10:26:46]current date 1730024807 [10:26:46]FM_GetShiftState [10:26:46]SAM_PROTO_GetShiftState [10:26:46]wFMCommunicate request_size=4 [10:26:46]MH_SAM_APDU [10:26:46]CAPDU: 80 13 01 00 [10:26:46]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [10:26:46]Write i2c OK [10:26:46]MH_I2C_Read... [10:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:46]Read from MH i2c: E2 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 0E 00 [10:26:46]MH_I2C_Read... [10:26:46]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 42 [10:26:46]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:26:46]wFMCommunicate OK [10:26:46]SAM_PROTO_GetShiftState done [10:26:46]FM_GetShiftState done [10:26:46]opened in 1729989505 [10:26:46]opened+sec_in_day 1730075905 [10:26:46]quantity*price = 13000 [10:26:46]sum+1 = 13001 [10:26:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 53 27.10.2024 10:26 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60521 ФПД: 43697112307313 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102647&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60521&fm=43697112307313&tin=02508201610067®Number=0000000000091622&sum=13000 0 [10:26:48]StoreToDocumentArchive [10:26:48]shift 532 fd 60521 [10:26:48]save to /storage/0532/doc_00060521 [10:26:48]save last doc name /storage/0532/doc_00060521 to /storage/kkm_last_doc_name [10:26:48]save OK [10:26:48]Clear old archive folders... [10:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=295 [10:26:48]tlvbuf is 00208EB0 [10:26:48]SAM_PROTO_ClearQueue [10:26:48]wFMCommunicate request_size=4 [10:26:48]MH_SAM_APDU [10:26:48]CAPDU: 80 09 00 00 [10:26:48]Write to MH i2c: E2 08 00 2F 07 80 09 00 00 00 00 00 00 A8 [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:48]Read from MH i2c: E2 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [10:26:48]RAPDU: 90 00 [10:26:48]wFMCommunicate OK [10:26:48]SAM_PROTO_ClearQueue done [10:26:48]KKMCreateOFDPacket [10:26:48]OFDProtocolAddRootSTLVToBuf [10:26:48]FM_MakeSignedData [10:26:48]FM_MakeSignedData [10:26:48]SAM_PROTO_SignData [10:26:48]wFMCommunicate request_size=4 [10:26:48]MH_SAM_APDU [10:26:48]CAPDU: 80 0D 01 02 [10:26:48]Write to MH i2c: E2 08 00 30 07 80 0D 01 02 00 00 00 00 B0 [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:48]Read from MH i2c: E2 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [10:26:48]RAPDU: 90 00 [10:26:48]wFMCommunicate OK [10:26:48]wFMCommunicate request_size=255 [10:26:48]MH_SAM_APDU [10:26:48]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 67 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [10:26:48]Write to MH i2c: E2 02 01 31 07 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 67 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 8E [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:48]Read from MH i2c: E2 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [10:26:48]RAPDU: 90 00 [10:26:48]wFMCommunicate OK [10:26:48]wFMCommunicate request_size=54 [10:26:48]MH_SAM_APDU [10:26:48]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EC 00 00 35 04 06 00 27 BE 06 DB 56 71 [10:26:48]Write to MH i2c: E2 39 00 32 07 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EC 00 00 35 04 06 00 27 BE 06 DB 56 71 00 00 BB [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:48]Read from MH i2c: E2 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [10:26:48]RAPDU: 90 00 [10:26:48]wFMCommunicate OK [10:26:48]wFMCommunicate request_size=4 [10:26:48]MH_SAM_APDU [10:26:48]CAPDU: 80 0D 03 02 [10:26:48]Write to MH i2c: E2 08 00 33 07 80 0D 03 02 00 00 00 00 B5 [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:48]Read from MH i2c: E2 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 0B 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 0B 00 33 07 00 C6 B3 40 52 88 DB 5B 83 90 00 02 [10:26:48]RAPDU: C6 B3 40 52 88 DB 5B 83 90 00 [10:26:48]wFMCommunicate OK [10:26:48]SAM_PROTO_SignData done [10:26:48]FM_MakeSignedData done [10:26:48]CreateOFDProtocolMessage [10:26:48]wFMCommunicate request_size=4 [10:26:48]MH_SAM_APDU [10:26:48]CAPDU: 80 11 00 00 [10:26:48]Write to MH i2c: E2 08 00 34 07 80 11 00 00 00 00 00 00 B5 [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:48]Read from MH i2c: E2 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 17 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: E2 17 00 34 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0C [10:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:26:48]wFMCommunicate OK [10:26:48]CreateOFDProtocolMessage done [10:26:48]OFDSenderStorePacket 60521 [10:26:48]StoreOFDPacket docnum=60521 [10:26:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3B 01 00 00 2E 96 33 01 81 B7 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 67 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EC 00 00 35 04 06 00 27 BE 06 DB 56 71 C6 B3 40 52 88 DB 5B 83 [10:26:48]CheckFolder [10:26:48]dirname=/storage/ofd_packets [10:26:48]CheckFolder done [10:26:48]ProducePacketName [10:26:48]name=ofd_packets/00060521 [10:26:48]NVStorageSaveData ofd_packets/00060521 [10:26:48]File name is /storage/ofd_packets/00060521 [10:26:48]Write 345 bytes [10:26:48]NVStorageSaveData done [10:26:48]OFDSenderStorePacket done [10:26:48]KKMCreateOFDPacket done [10:26:48]NVStorageSaveData kkm_last_timestamp [10:26:48]File name is /storage/kkm_last_timestamp [10:26:48]Write 4 bytes [10:26:48]NVStorageSaveData done [10:26:48]ExternCall_PrintAddStr [10:26:48]wPrintStart [10:26:48]Write to MH i2c: 01 00 00 35 07 3C [10:26:48]Write i2c OK [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: 01 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: 01 07 00 [10:26:48]MH_I2C_Read... [10:26:48]Read from MH i2c: 01 07 00 35 07 00 00 00 00 00 FF 0F 51 [10:26:48]RasterBufferAndPrint [10:26:48]line Счет N : (3)200154 [10:26:48]line ИНН: 02508201610067 [10:26:48]line Контрольно-Кассовый Чек [10:26:48]line ПРОДАЖА [10:26:48]line Товар: 4870002325441 [10:26:48]line Вода ASU пит н.газ лимон ПЭТ 0,5л [10:26:48]line 2.000 * 65.00 [10:26:48]line = 130.00 [10:26:48]line НДС 12% НСП 1% [10:26:48]line > о реализуемом товаре [10:26:48]line ИТОГО: 130.00 [10:26:48]line НСП 1% : 1.15 [10:26:48]line НДС 12% : 13.80 [10:26:48]line Наличными: 130.00 [10:26:48]line Безнал.: 0.00 [10:26:48]line Место: АЗС № 87 "Партнер Нефть" [10:26:48]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:26:48]line СНО: Общий режим [10:26:48]line Чек 53 27.10.2024 10:26 [10:26:48]line Смена: 532 ФФД: 1.0 [10:26:48]line ЗНМ: 0300000084 [10:26:48]line РНМ: 0000000000091622 [10:26:48]line Версия ККМ: 001 [10:26:48]line ФМ: 0000000000874674 [10:26:48]line ФД: 60521 [10:26:48]line ФПД: 43697112307313 [10:26:48]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102647&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60521&fm=43697112307313&tin=02508201610067®Number=0000000000091622&sum=13000 [10:26:48]line 0 [10:26:48]OFD Sender: Processing packet 60521 [packets to send 30, broken 29] [10:26:48]ProducePacketName [10:26:48]name=ofd_packets/00060521 [10:26:48]OFD Sender: To server: pG, [10:26:48]CommunicateWithHost lk.salyk.kg:30040 [10:26:48]ConnectInit lk.salyk.kg [10:26:48]written 0, free lines is 4095 [10:26:49]Connected sock=10 [10:26: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 36 37 34 3B 01 00 00 2E 96 33 01 81 B7 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 67 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 69 EC 00 00 35 04 06 00 27 BE 06 DB 56 71 C6 B3 40 52 88 DB 5B 83 [10:26:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 88 4F 47 00 E5 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 36 37 34 10 04 04 00 69 EC 00 00 F4 03 04 00 4F BB 1D 67 B6 04 01 00 00 11 76 C7 A5 B0 BC BA 6D [10:26:49]CommunicateWithHost err = 0 [10:26:49]CheckOFDResponse [10:26:49]1017 (14) - 77093643461234 [10:26:49]1041 (16) - 0000000000874674 [10:26:49]1040 (4) - 60521 [10:26:49]1012 (4) - 27.10.2024 04:02 [10:26:49]1206 (1) - 0 [10:26:49]OFD Sender: Remove packet 60521 [10:26:49]ProducePacketName [10:26:49]name=ofd_packets/00060521 [10:26:49]NVStorageDeleteData [10:26:49]Write to MH i2c: 01 00 00 5E 07 65 [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: 01 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: 01 07 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 ED 0C 65 [10:26:49]RasterBufferAndPrint [10:26:49]line [10:26:49]line [10:26:49]line [10:26:49]line [10:26:49]line [10:26:49]written 0, free lines is 3315 [10:26:49]MH_Cut [10:26:49]Write to MH i2c: D1 01 00 65 07 01 3E [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: D1 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: D1 01 00 [10:26:49]MH_I2C_Read... [10:26:49]Read from MH i2c: D1 01 00 65 07 00 3D [10:26:49]Write to MH i2c: 01 00 00 66 07 6D [10:26:49]Write i2c OK [10:26:49]MH_I2C_Read... [10:26:49]OFD Sender: No OFD packet to send [10:26:50]*** Cut start [10:26:50]*** Partial cut [10:26:50]*** CUTSNS_PIN = 1 [10:26:50]*** CUTSNS_PIN = 0 [10:26:50]*** Brake cut motor [10:26:50]Read from MH i2c: 01 [10:26:50]MH_I2C_Read... [10:26:50]*** Stop cut motor [10:26:50]*** Cut end [10:26:50]Read from MH i2c: 01 07 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [10:26:50]process_action close_receipt done [10:26:50]requested_data is exist [10:26:50]produce_requested_data [10:26:50]requested_item fm.sn is exist - process it [10:26:50]wFMCommunicate request_size=4 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 11 00 00 [10:26:50]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:50]Read from MH i2c: E2 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 17 00 [10:26:50]MH_I2C_Read... [10:26:50]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 3F [10:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:26:50]wFMCommunicate OK [10:26:50]requested_item fd.num is exist - process it [10:26:50]SAM_PROTO_GetFieldsCounters [10:26:50]wFMCommunicate request_size=4 [10:26:50]MH_SAM_APDU [10:26:50]CAPDU: 80 13 00 00 [10:26:50]Write to MH i2c: E2 08 00 68 07 80 13 00 00 00 00 00 00 EB [10:26:50]Write i2c OK [10:26:50]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 62 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 62 00 68 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 69 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [10:26: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 69 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:51]wFMCommunicate OK [10:26:51]SAM_PROTO_GetFieldsCounters done [10:26:51]requested_item shift.num is exist - process it [10:26:51]requested_item shift.opened is exist - process it [10:26:51]req_shift_opened [10:26:51]FM_GetShiftState [10:26:51]SAM_PROTO_GetShiftState [10:26:51]wFMCommunicate request_size=4 [10:26:51]MH_SAM_APDU [10:26:51]CAPDU: 80 13 01 00 [10:26:51]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [10:26:51]Write i2c OK [10:26:51]MH_I2C_Read... [10:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:51]Read from MH i2c: E2 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0E 00 [10:26:51]MH_I2C_Read... [10:26:51]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 89 [10:26:51]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:26:51]wFMCommunicate OK [10:26:51]SAM_PROTO_GetShiftState done [10:26:51]FM_GetShiftState done [10:26:51]req_shift_opened done [10:26:51]requested_item shift.open_date is exist - process it [10:26:51]req_shift_open_date [10:26:51]req_shift_open_date done [10:26:51]produce_requested_data done [10:26:51]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60521,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:26:51]process_action_free close_receipt [10:26:51]json_value_free [10:26:51]json_value_free done [10:26:51]process_json_proto returns [10:26:51]Send response to host [10:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60521,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:26:51]free response buf [10:26:51]execute_script done [10:26:51]execute_script returns [10:26:51]free content buf [10:26:51]Sock 7.Close socket [10:26:51]Sock 7.Thread stoped [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]accept exits with 9 [10:27:59]New connection [10:27:59]New thread 3067219300 created [10:27:59]Thread 3067362660 joined [10:27:59]Waiting for new connection... [10:27:59] Sock 9.Parse request [10:27:59]Sock 9.Check first char [10:27:59]Sock 9.First char is OK [10:27:59]request: POST /json_proto HTTP/1.0 [10:27:59]Method: POST [10:27:59]URL: /json_proto [10:27:59]Method is POST - this is cgi request [10:27:59]url: /json_proto [10:27:59]query_string will be loaded in cgi processing [10:27:59]execute_cgi json_proto POST (null) [10:27:59]execute_cgi path=json_proto method=POST [10:27:59]POST find Content-Length [10:27:59]Host: 172.17.42.196:8080 [10:27:59]Content-Length: 770 [10:27:59]Content-Type: application/json [10:27:59] [10:27:59]POST finish read [10:27:59]Found Content-Length = 770 [10:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:59]execute_script... [10:27: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)3311559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:59]POST & json_proto [10:27:59]process_json_proto [10:27:59]json parsed OK: [10:27:59]protocol is kg_v1.0 [10:27:59]action value=close_receipt [10:27:59]process_action close_receipt [10:27:59]cmd_close_receipt [10:27:59]MH_GetDate [10:27:59]Write to MH i2c: F0 00 00 6A 07 60 [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: F0 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: F0 09 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: F0 09 00 6A 07 00 B0 15 1E 67 FF C4 6B 64 45 [10:27:59]GetLastDocTimeStamp 1730024807 [10:27:59]current date 1730024880 [10:27:59]FM_GetShiftState [10:27:59]SAM_PROTO_GetShiftState [10:27:59]wFMCommunicate request_size=4 [10:27:59]MH_SAM_APDU [10:27:59]CAPDU: 80 13 01 00 [10:27:59]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [10:27:59]Write i2c OK [10:27:59]MH_I2C_Read... [10:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:59]Read from MH i2c: E2 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 0E 00 [10:27:59]MH_I2C_Read... [10:27:59]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 8B [10:27:59]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:27:59]wFMCommunicate OK [10:27:59]SAM_PROTO_GetShiftState done [10:27:59]FM_GetShiftState done [10:27:59]opened in 1729989505 [10:27:59]opened+sec_in_day 1730075905 [10:27:59]quantity*price = 100015 [10:27:59]sum+1 = 100017 [10:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 54 27.10.2024 10:28 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60522 ФПД: 192514140158489 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102800&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60522&fm=192514140158489&tin=02508201610067®Number=0000000000091622&sum=100016 [10:28:00]StoreToDocumentArchive [10:28:00]shift 532 fd 60522 [10:28:00]save to /storage/0532/doc_00060522 [10:28:00]save last doc name /storage/0532/doc_00060522 to /storage/kkm_last_doc_name [10:28:00]save OK [10:28:00]Clear old archive folders... [10:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:00]tlvbuf is 00208DA0 [10:28:00]SAM_PROTO_ClearQueue [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 09 00 00 [10:28:00]Write to MH i2c: E2 08 00 78 07 80 09 00 00 00 00 00 00 F1 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [10:28:00]RAPDU: 90 00 [10:28:00]wFMCommunicate OK [10:28:00]SAM_PROTO_ClearQueue done [10:28:00]KKMCreateOFDPacket [10:28:00]OFDProtocolAddRootSTLVToBuf [10:28:00]FM_MakeSignedData [10:28:00]FM_MakeSignedData [10:28:00]SAM_PROTO_SignData [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 0D 01 02 [10:28:00]Write to MH i2c: E2 08 00 79 07 80 0D 01 02 00 00 00 00 F9 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [10:28:00]RAPDU: 90 00 [10:28:00]wFMCommunicate OK [10:28:00]wFMCommunicate request_size=255 [10:28:00]MH_SAM_APDU [10:28: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EC 00 00 35 04 06 00 AF [10:28:00]Write to MH i2c: E2 02 01 7A 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EC 00 00 35 04 06 00 AF 00 00 3B [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [10:28:00]RAPDU: 90 00 [10:28:00]wFMCommunicate OK [10:28:00]wFMCommunicate request_size=10 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 0D 02 02 05 17 30 F0 3A 19 [10:28:00]Write to MH i2c: E2 0D 00 7B 07 80 0D 02 02 05 00 17 30 F0 3A 19 00 00 90 [10:28:00]Write i2c OK [10:28:00]MH_I2C_Read... [10:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:00]Read from MH i2c: E2 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 [10:28:00]MH_I2C_Read... [10:28:00]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [10:28:00]RAPDU: 90 00 [10:28:00]wFMCommunicate OK [10:28:00]wFMCommunicate request_size=4 [10:28:00]MH_SAM_APDU [10:28:00]CAPDU: 80 0D 03 02 [10:28:00]Write to MH i2c: E2 08 00 7C 07 80 0D 03 02 00 00 00 00 FE [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 0B 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 0B 00 7C 07 00 2D BB C7 08 57 E4 6F 8D 90 00 ED [10:28:01]RAPDU: 2D BB C7 08 57 E4 6F 8D 90 00 [10:28:01]wFMCommunicate OK [10:28:01]SAM_PROTO_SignData done [10:28:01]FM_MakeSignedData done [10:28:01]CreateOFDProtocolMessage [10:28:01]wFMCommunicate request_size=4 [10:28:01]MH_SAM_APDU [10:28:01]CAPDU: 80 11 00 00 [10:28:01]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:01]Read from MH i2c: E2 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 17 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 55 [10:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:28:01]wFMCommunicate OK [10:28:01]CreateOFDProtocolMessage done [10:28:01]OFDSenderStorePacket 60522 [10:28:01]StoreOFDPacket docnum=60522 [10:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 BE 6E 07 01 89 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EC 00 00 35 04 06 00 AF 17 30 F0 3A 19 2D BB C7 08 57 E4 6F 8D [10:28:01]CheckFolder [10:28:01]dirname=/storage/ofd_packets [10:28:01]CheckFolder done [10:28:01]ProducePacketName [10:28:01]name=ofd_packets/00060522 [10:28:01]NVStorageSaveData ofd_packets/00060522 [10:28:01]File name is /storage/ofd_packets/00060522 [10:28:01]Write 301 bytes [10:28:01]NVStorageSaveData done [10:28:01]OFDSenderStorePacket done [10:28:01]KKMCreateOFDPacket done [10:28:01]NVStorageSaveData kkm_last_timestamp [10:28:01]File name is /storage/kkm_last_timestamp [10:28:01]Write 4 bytes [10:28:01]NVStorageSaveData done [10:28:01]ExternCall_PrintAddStr [10:28:01]wPrintStart [10:28:01]Write to MH i2c: 01 00 00 7E 07 85 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 07 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 FF 0F 9A [10:28:01]RasterBufferAndPrint [10:28:01]line Счет N : (1)3311559 [10:28:01]line ИНН: 02508201610067 [10:28:01]line Контрольно-Кассовый Чек [10:28:01]line ПРОДАЖА [10:28:01]line ТРК (МРК, ГНК) : 42 [10:28:01]line Товар: 2710124130 [10:28:01]line Аи-92-К-4 [10:28:01]line 14.950 * 66.90 [10:28:01]line = 1000.16 [10:28:01]line НДС 12% НСП 1% [10:28:01]line > о реализуемом товаре [10:28:01]line ИТОГО: 1000.16 [10:28:01]line НСП 1% : 8.85 [10:28:01]line НДС 12% : 106.21 [10:28:01]line Наличными: 0.00 [10:28:01]line Безнал.: 1000.16 [10:28:01]line Место: АЗС № 87 "Партнер Нефть" [10:28:01]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:28:01]line СНО: Общий режим [10:28:01]line Чек 54 27.10.2024 10:28 [10:28:01]line Смена: 532 ФФД: 1.0 [10:28:01]line ЗНМ: 0300000084 [10:28:01]line РНМ: 0000000000091622 [10:28:01]line Версия ККМ: 001 [10:28:01]line Платежная система: Mbank [10:28:01]line ФМ: 0000000000874674 [10:28:01]line ФД: 60522 [10:28:01]line ФПД: 192514140158489 [10:28:01]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102800&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60522&fm=192514140158489&tin=02508201610067®Number=0000000000091622&sum=100016 [10:28:01]written 0, free lines is 4095 [10:28:01]OFD Sender: Processing packet 60522 [packets to send 30, broken 29] [10:28:01]ProducePacketName [10:28:01]name=ofd_packets/00060522 [10:28:01]OFD Sender: To server: pG, [10:28:01]CommunicateWithHost lk.salyk.kg:30040 [10:28:01]ConnectInit lk.salyk.kg [10:28:01]Write to MH i2c: 01 00 00 A7 07 AE [10:28:01]Connected sock=10 [10:28: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 36 37 34 0F 01 00 00 BE 6E 07 01 89 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 B0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6A EC 00 00 35 04 06 00 AF 17 30 F0 3A 19 2D BB C7 08 57 E4 6F 8D [10:28:01]Read from MH i2c: 01 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 07 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: 01 07 00 A7 07 00 00 00 00 00 05 0D C7 [10:28:01]RasterBufferAndPrint [10:28:01]line [10:28:01]line [10:28:01]line [10:28:01]line [10:28:01]line [10:28:01]written 0, free lines is 3360 [10:28:01]MH_Cut [10:28:01]Write to MH i2c: D1 01 00 AE 07 01 87 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: D1 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: D1 01 00 [10:28:01]MH_I2C_Read... [10:28:01]Read from MH i2c: D1 01 00 AE 07 00 86 [10:28:01]Write to MH i2c: 01 00 00 AF 07 B6 [10:28:01]Write i2c OK [10:28:01]MH_I2C_Read... [10:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F6 4C 47 00 0D 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 36 37 34 10 04 04 00 6A EC 00 00 F4 03 04 00 98 BB 1D 67 B6 04 01 00 00 21 66 87 0E 64 24 3C 62 [10:28:01]CommunicateWithHost err = 0 [10:28:01]CheckOFDResponse [10:28:01]1017 (14) - 77093643461234 [10:28:01]1041 (16) - 0000000000874674 [10:28:01]1040 (4) - 60522 [10:28:01]1012 (4) - 27.10.2024 04:03 [10:28:01]1206 (1) - 0 [10:28:01]OFD Sender: Remove packet 60522 [10:28:01]ProducePacketName [10:28:01]name=ofd_packets/00060522 [10:28:01]NVStorageDeleteData [10:28:02]OFD Sender: No OFD packet to send [10:28:02]*** Cut start [10:28:02]*** Partial cut [10:28:02]*** CUTSNS_PIN = 1 [10:28:02]*** CUTSNS_PIN = 0 [10:28:02]*** Brake cut motor [10:28:02]Read from MH i2c: 01 [10:28:02]MH_I2C_Read... [10:28:02]*** Stop cut motor [10:28:02]*** Cut end [10:28:02]Read from MH i2c: 01 07 00 [10:28:02]MH_I2C_Read... [10:28:02]Read from MH i2c: 01 07 00 AF 07 00 00 00 00 00 FF 0F CB [10:28:02]process_action close_receipt done [10:28:02]requested_data is exist [10:28:02]produce_requested_data [10:28:02]requested_item fm.sn is exist - process it [10:28:02]wFMCommunicate request_size=4 [10:28:02]MH_SAM_APDU [10:28:02]CAPDU: 80 11 00 00 [10:28:02]Write to MH i2c: E2 08 00 B0 07 80 11 00 00 00 00 00 00 31 [10:28:02]Write i2c OK [10:28:02]MH_I2C_Read... [10:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:03]Read from MH i2c: E2 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: E2 17 00 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: E2 17 00 B0 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 88 [10:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:28:03]wFMCommunicate OK [10:28:03]requested_item fd.num is exist - process it [10:28:03]SAM_PROTO_GetFieldsCounters [10:28:03]wFMCommunicate request_size=4 [10:28:03]MH_SAM_APDU [10:28:03]CAPDU: 80 13 00 00 [10:28:03]Write to MH i2c: E2 08 00 B1 07 80 13 00 00 00 00 00 00 34 [10:28:03]Write i2c OK [10:28:03]MH_I2C_Read... [10:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:03]Read from MH i2c: E2 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: E2 62 00 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: E2 62 00 B1 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [10:28: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:03]wFMCommunicate OK [10:28:03]SAM_PROTO_GetFieldsCounters done [10:28:03]requested_item shift.num is exist - process it [10:28:03]requested_item shift.opened is exist - process it [10:28:03]req_shift_opened [10:28:03]FM_GetShiftState [10:28:03]SAM_PROTO_GetShiftState [10:28:03]wFMCommunicate request_size=4 [10:28:03]MH_SAM_APDU [10:28:03]CAPDU: 80 13 01 00 [10:28:03]Write to MH i2c: E2 08 00 B2 07 80 13 01 00 00 00 00 00 36 [10:28:03]Write i2c OK [10:28:03]MH_I2C_Read... [10:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:03]Read from MH i2c: E2 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: E2 0E 00 [10:28:03]MH_I2C_Read... [10:28:03]Read from MH i2c: E2 0E 00 B2 07 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D2 [10:28:03]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:28:03]wFMCommunicate OK [10:28:03]SAM_PROTO_GetShiftState done [10:28:03]FM_GetShiftState done [10:28:03]req_shift_opened done [10:28:03]requested_item shift.open_date is exist - process it [10:28:03]req_shift_open_date [10:28:03]req_shift_open_date done [10:28:03]produce_requested_data done [10:28:03]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60522,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:28:03]process_action_free close_receipt [10:28:03]json_value_free [10:28:03]json_value_free done [10:28:03]process_json_proto returns [10:28:03]Send response to host [10:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60522,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:28:03]free response buf [10:28:03]execute_script done [10:28:03]execute_script returns [10:28:03]free content buf [10:28:03]Sock 9.Close socket [10:28:03]Sock 9.Thread stoped [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:03]accept exits with 7 [10:29:03]New connection [10:29:03]New thread 3067362660 created [10:29:03]Thread 3067219300 joined [10:29:03]Waiting for new connection... [10:29:03] Sock 7.Parse request [10:29:03]Sock 7.Check first char [10:29:03]Sock 7.First char is OK [10:29:03]request: POST /json_proto HTTP/1.0 [10:29:03]Method: POST [10:29:03]URL: /json_proto [10:29:03]Method is POST - this is cgi request [10:29:03]url: /json_proto [10:29:03]query_string will be loaded in cgi processing [10:29:03]execute_cgi json_proto POST (null) [10:29:03]execute_cgi path=json_proto method=POST [10:29:03]POST find Content-Length [10:29:03]Host: 172.17.42.196:8080 [10:29:03]Content-Length: 1908 [10:29:03]Content-Type: application/json [10:29:03] [10:29:03]POST finish read [10:29:03]Found Content-Length = 1908 [10:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200155", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607144732451", "name": "\u041F\u0435\u0447 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B. \u043C\u043E\u043B. \u0441 \u0433\u043B\u0430\u0437\u0443\u0440\u044C\u044E 115\u0433\u0440", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 471.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:03]execute_script... [10:29:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200155", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607120858977", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u043A\u0440\u0430\u0431 40\u0433", "price" : 38.00, "quantity" : 1.000, "sum" : 38.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607144732451", "name": "\u041F\u0435\u0447 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0442\u043E\u043F\u043B. \u043C\u043E\u043B. \u0441 \u0433\u043B\u0430\u0437\u0443\u0440\u044C\u044E 115\u0433\u0440", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 471.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:03]POST & json_proto [10:29:03]process_json_proto [10:29:03]json parsed OK: [10:29:03]protocol is kg_v1.0 [10:29:03]action value=close_receipt [10:29:03]process_action close_receipt [10:29:03]cmd_close_receipt [10:29:03]MH_GetDate [10:29:03]Write to MH i2c: F0 00 00 B3 07 A9 [10:29:03]Write i2c OK [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: F0 [10:29:03]MH_I2C_Read... [10:29:04]Read from MH i2c: F0 09 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: F0 09 00 B3 07 00 F0 15 1E 67 FF C4 6B 64 CE [10:29:04]GetLastDocTimeStamp 1730024880 [10:29:04]current date 1730024944 [10:29:04]FM_GetShiftState [10:29:04]SAM_PROTO_GetShiftState [10:29:04]wFMCommunicate request_size=4 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 13 01 00 [10:29:04]Write to MH i2c: E2 08 00 B4 07 80 13 01 00 00 00 00 00 38 [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:04]Read from MH i2c: E2 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 0E 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 0E 00 B4 07 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D4 [10:29:04]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:29:04]wFMCommunicate OK [10:29:04]SAM_PROTO_GetShiftState done [10:29:04]FM_GetShiftState done [10:29:04]opened in 1729989505 [10:29:04]opened+sec_in_day 1730075905 [10:29:04]quantity*price = 16000 [10:29:04]sum+1 = 16001 [10:29:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189349 Холодный чай Fuse манго ананас 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607120858977 Чипсы Чипсоны краб 40г 1.000 * 38.00 = 38.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607144732451 Печ Коровка топл. мол. с глазурью 115гр 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 2.000 * 4.00 = 8.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 471.00 НСП 1% : 4.17 НДС 12% : 50.01 Наличными: 471.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 55 27.10.2024 10:29 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60523 ФПД: 255133620299077 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102904&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60523&fm=255133620299077&tin=02508201610067®Number=0000000000091622&sum=47100 0 [10:29:05]StoreToDocumentArchive [10:29:05]shift 532 fd 60523 [10:29:05]save to /storage/0532/doc_00060523 [10:29:05]save last doc name /storage/0532/doc_00060523 to /storage/kkm_last_doc_name [10:29:05]save OK [10:29:05]Clear old archive folders... [10:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=782 [10:29:05]tlvbuf is 001C7960 [10:29:05]SAM_PROTO_ClearQueue [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 09 00 00 [10:29:05]Write to MH i2c: E2 08 00 C1 07 80 09 00 00 00 00 00 00 3A [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [10:29:05]RAPDU: 90 00 [10:29:05]wFMCommunicate OK [10:29:05]SAM_PROTO_ClearQueue done [10:29:05]KKMCreateOFDPacket [10:29:05]OFDProtocolAddRootSTLVToBuf [10:29:05]FM_MakeSignedData [10:29:05]FM_MakeSignedData [10:29:05]SAM_PROTO_SignData [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 0D 01 02 [10:29:05]Write to MH i2c: E2 08 00 C2 07 80 0D 01 02 00 00 00 00 42 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [10:29:05]RAPDU: 90 00 [10:29:05]wFMCommunicate OK [10:29:05]wFMCommunicate request_size=255 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 0D 02 02 FA 03 00 0E 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 [10:29:05]Write to MH i2c: E2 02 01 C3 07 80 0D 02 02 FA 00 03 00 0E 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 00 00 13 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [10:29:05]RAPDU: 90 00 [10:29:05]wFMCommunicate OK [10:29:05]wFMCommunicate request_size=255 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 0D 02 02 FA 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 [10:29:05]Write to MH i2c: E2 02 01 C4 07 80 0D 02 02 FA 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 00 00 61 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=255 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 02 02 FA 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [10:29:06]Write to MH i2c: E2 02 01 C5 07 80 0D 02 02 FA 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 37 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=41 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EC 00 00 35 04 06 00 E8 0A EC CE E5 45 [10:29:06]Write to MH i2c: E2 2C 00 C6 07 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EC 00 00 35 04 06 00 E8 0A EC CE E5 45 00 00 47 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 03 02 [10:29:06]Write to MH i2c: E2 08 00 C7 07 80 0D 03 02 00 00 00 00 49 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 0B 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 0B 00 C7 07 00 60 01 79 15 17 05 A4 EB 90 00 E4 [10:29:06]RAPDU: 60 01 79 15 17 05 A4 EB 90 00 [10:29:06]wFMCommunicate OK [10:29:06]SAM_PROTO_SignData done [10:29:06]FM_MakeSignedData done [10:29:06]CreateOFDProtocolMessage [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 11 00 00 [10:29:06]Write to MH i2c: E2 08 00 C8 07 80 11 00 00 00 00 00 00 49 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 17 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 17 00 C8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 A0 [10:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:29:06]wFMCommunicate OK [10:29:06]CreateOFDProtocolMessage done [10:29:06]OFDSenderStorePacket 60523 [10:29:06]StoreOFDPacket docnum=60523 [10:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 22 03 00 00 5A AF 1A 03 08 91 5A 03 01 00 03 00 0E 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EC 00 00 35 04 06 00 E8 0A EC CE E5 45 60 01 79 15 17 05 A4 EB [10:29:06]CheckFolder [10:29:06]dirname=/storage/ofd_packets [10:29:06]CheckFolder done [10:29:06]ProducePacketName [10:29:06]name=ofd_packets/00060523 [10:29:06]NVStorageSaveData ofd_packets/00060523 [10:29:06]File name is /storage/ofd_packets/00060523 [10:29:06]Write 832 bytes [10:29:06]NVStorageSaveData done [10:29:06]OFDSenderStorePacket done [10:29:06]KKMCreateOFDPacket done [10:29:06]NVStorageSaveData kkm_last_timestamp [10:29:06]File name is /storage/kkm_last_timestamp [10:29:06]Write 4 bytes [10:29:06]NVStorageSaveData done [10:29:06]ExternCall_PrintAddStr [10:29:06]wPrintStart [10:29:06]Write to MH i2c: 01 00 00 C9 07 D0 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 07 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 07 00 C9 07 00 00 00 00 00 FF 0F E5 [10:29:06]RasterBufferAndPrint [10:29:06]line Счет N : (3)200155 [10:29:06]line ИНН: 02508201610067 [10:29:06]line Контрольно-Кассовый Чек [10:29:06]line ПРОДАЖА [10:29:06]line Товар: 4700003010353 [10:29:06]line Напиток Let`s Go! с/с груша ПЭТ 1л [10:29:06]line 2.000 * 80.00 [10:29:06]line = 160.00 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line Товар: 5449000189349 [10:29:06]line Холодный чай Fuse манго ананас 0,5л [10:29:06]line 1.000 * 75.00 [10:29:06]line = 75.00 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line Товар: 4607120858977 [10:29:06]line Чипсы Чипсоны краб 40г [10:29:06]line 1.000 * 38.00 [10:29:06]line = 38.00 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line Товар: 4607144732451 [10:29:06]line Печ Коровка топл. мол. с глазурью 115гр [10:29:06]line 2.000 * 95.00 [10:29:06]line = 190.00 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line Товар: 2000031750019 [10:29:06]line Пакет Партнер Нефть [10:29:06]line 2.000 * 4.00 [10:29:06]line = 8.00 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line ИТОГО: 471.00 [10:29:06]line НСП 1% : 4.17 [10:29:06]line НДС 12% : 50.01 [10:29:06]line Наличными: 471.00 [10:29:06]line Безнал.: 0.00 [10:29:06]line Место: АЗС № 87 "Партнер Нефть" [10:29:06]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:29:06]line СНО: Общий режим [10:29:06]line Чек 55 27.10.2024 10:29 [10:29:06]line Смена: 532 ФФД: 1.0 [10:29:06]line ЗНМ: 0300000084 [10:29:06]line РНМ: 0000000000091622 [10:29:06]line Версия ККМ: 001 [10:29:06]line ФМ: 0000000000874674 [10:29:06]line ФД: 60523 [10:29:06]line ФПД: 255133620299077 [10:29:06]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102904&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60523&fm=255133620299077&tin=02508201610067®Number=0000000000091622&sum=47100 [10:29:06]OFD Sender: Processing packet 60523 [packets to send 30, broken 29] [10:29:06]ProducePacketName [10:29:06]name=ofd_packets/00060523 [10:29:06]OFD Sender: To server: pG, [10:29:06]CommunicateWithHost lk.salyk.kg:30040 [10:29:06]ConnectInit lk.salyk.kg [10:29:06]line 0 [10:29:06]written 0, free lines is 4095 [10:29:07]Connected sock=10 [10: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 36 37 34 22 03 00 00 5A AF 1A 03 08 91 5A 03 01 00 03 00 0E 03 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 38 39 37 37 06 04 27 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D0 BA D1 80 D0 B0 D0 B1 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 0E 00 00 00 00 13 04 06 00 D8 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 34 34 37 33 32 34 35 31 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 82 D0 BE D0 BF D0 BB 2E 20 D0 BC D0 BE D0 BB 2E 20 D1 81 20 D0 B3 D0 BB D0 B0 D0 B7 D1 83 D1 80 D1 8C D1 8E 20 31 31 35 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 F0 15 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6B EC 00 00 35 04 06 00 E8 0A EC CE E5 45 60 01 79 15 17 05 A4 EB [10:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F4 EB 47 00 7C 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 36 37 34 10 04 04 00 6B EC 00 00 F4 03 04 00 D9 BB 1D 67 B6 04 01 00 00 50 30 46 C4 EA B2 F5 7C [10:29:07]CommunicateWithHost err = 0 [10:29:07]CheckOFDResponse [10:29:07]1017 (14) - 77093643461234 [10:29:07]1041 (16) - 0000000000874674 [10:29:07]1040 (4) - 60523 [10:29:07]1012 (4) - 27.10.2024 04:04 [10:29:07]1206 (1) - 0 [10:29:07]OFD Sender: Remove packet 60523 [10:29:07]ProducePacketName [10:29:07]name=ofd_packets/00060523 [10:29:07]NVStorageDeleteData [10:29:07]Write to MH i2c: 01 00 00 0C 08 14 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 07 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 07 00 0C 08 00 00 00 00 00 4F 0B 75 [10:29:07]RasterBufferAndPrint [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]written 0, free lines is 2904 [10:29:07]MH_Cut [10:29:07]Write to MH i2c: D1 01 00 13 08 01 ED [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 01 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 01 00 13 08 00 EC [10:29:07]Write to MH i2c: 01 00 00 14 08 1C [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]OFD Sender: No OFD packet to send [10:29:08]*** Cut start [10:29:08]*** Partial cut [10:29:08]*** CUTSNS_PIN = 1 [10:29:08]*** CUTSNS_PIN = 0 [10:29:09]*** Brake cut motor [10:29:09]Read from MH i2c: 01 [10:29:09]MH_I2C_Read... [10:29:09]*** Stop cut motor [10:29:09]*** Cut end [10:29:09]Read from MH i2c: 01 07 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: 01 07 00 14 08 00 00 00 00 00 FF 0F 31 [10:29:09]process_action close_receipt done [10:29:09]requested_data is exist [10:29:09]produce_requested_data [10:29:09]requested_item fm.sn is exist - process it [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 11 00 00 [10:29:09]Write to MH i2c: E2 08 00 15 08 80 11 00 00 00 00 00 00 97 [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 17 00 [10:29:09]MH_I2C_Read... [10:29:09]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 36 37 34 90 00 EE [10:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:29:09]wFMCommunicate OK [10:29:09]requested_item fd.num is exist - process it [10:29:09]SAM_PROTO_GetFieldsCounters [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 00 00 [10:29:09]Write to MH i2c: E2 08 00 16 08 80 13 00 00 00 00 00 00 9A [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 62 00 [10:29:09]MH_I2C_Read... [10:29:09]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [10: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetFieldsCounters done [10:29:09]requested_item shift.num is exist - process it [10:29:09]requested_item shift.opened is exist - process it [10:29:09]req_shift_opened [10:29:09]FM_GetShiftState [10:29:09]SAM_PROTO_GetShiftState [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 01 00 [10:29:09]Write to MH i2c: E2 08 00 17 08 80 13 01 00 00 00 00 00 9C [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 17 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 38 [10:29:09]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetShiftState done [10:29:09]FM_GetShiftState done [10:29:09]req_shift_opened done [10:29:09]requested_item shift.open_date is exist - process it [10:29:09]req_shift_open_date [10:29:09]req_shift_open_date done [10:29:09]produce_requested_data done [10:29:09]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60523,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:29:09]process_action_free close_receipt [10:29:09]json_value_free [10:29:09]json_value_free done [10:29:09]process_json_proto returns [10:29:09]Send response to host [10:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60523,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:29:09]free response buf [10:29:09]execute_script done [10:29:09]execute_script returns [10:29:09]free content buf [10:29:09]Sock 7.Close socket [10:29:09]Sock 7.Thread stoped [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:26]accept exits with 9 [10:29:26]New connection [10:29:26]New thread 3067219300 created [10:29:26]Thread 3067362660 joined [10:29:26]Waiting for new connection... [10:29:26] Sock 9.Parse request [10:29:26]Sock 9.Check first char [10:29:26]Sock 9.First char is OK [10:29:26]request: POST /json_proto HTTP/1.0 [10:29:26]Method: POST [10:29:26]URL: /json_proto [10:29:26]Method is POST - this is cgi request [10:29:26]url: /json_proto [10:29:26]query_string will be loaded in cgi processing [10:29:26]execute_cgi json_proto POST (null) [10:29:26]execute_cgi path=json_proto method=POST [10:29:26]POST find Content-Length [10:29:26]Host: 172.17.42.196:8080 [10:29:26]Content-Length: 645 [10:29:26]Content-Type: application/json [10:29:26] [10:29:26]POST finish read [10:29:26]Found Content-Length = 645 [10:29:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200156", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:26]execute_script... [10: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 : (3)200156", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:26]POST & json_proto [10:29:26]process_json_proto [10:29:26]json parsed OK: [10:29:26]protocol is kg_v1.0 [10:29:26]action value=close_receipt [10:29:26]process_action close_receipt [10:29:26]cmd_close_receipt [10:29:26]MH_GetDate [10:29:26]Write to MH i2c: F0 00 00 18 08 0F [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: F0 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: F0 09 00 [10:29:26]MH_I2C_Read... [10:29:26]Read from MH i2c: F0 09 00 18 08 00 07 16 1E 67 FF C4 6B 64 4C [10:29:26]GetLastDocTimeStamp 1730024944 [10:29:26]current date 1730024967 [10:29:26]FM_GetShiftState [10:29:26]SAM_PROTO_GetShiftState [10:29:26]wFMCommunicate request_size=4 [10:29:26]MH_SAM_APDU [10:29:26]CAPDU: 80 13 01 00 [10:29:26]Write to MH i2c: E2 08 00 19 08 80 13 01 00 00 00 00 00 9E [10:29:26]Write i2c OK [10:29:26]MH_I2C_Read... [10:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:27]Read from MH i2c: E2 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 [10:29:27]MH_I2C_Read... [10:29:27]Read from MH i2c: E2 0E 00 19 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 3A [10:29:27]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:29:27]wFMCommunicate OK [10:29:27]SAM_PROTO_GetShiftState done [10:29:27]FM_GetShiftState done [10:29:27]opened in 1729989505 [10:29:27]opened+sec_in_day 1730075905 [10:29:27]quantity*price = 7900 [10:29:27]sum+1 = 7901 [10:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 56 27.10.2024 10:29 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60524 ФПД: 241772573990019 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102927&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60524&fm=241772573990019&tin=02508201610067®Number=0000000000091622&sum=7900 0 [10:29:28]StoreToDocumentArchive [10:29:28]shift 532 fd 60524 [10:29:28]save to /storage/0532/doc_00060524 [10:29:28]save last doc name /storage/0532/doc_00060524 to /storage/kkm_last_doc_name [10:29:28]save OK [10:29:28]Clear old archive folders... [10:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:29:28]tlvbuf is 00229F20 [10:29:28]SAM_PROTO_ClearQueue [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 09 00 00 [10:29:28]Write to MH i2c: E2 08 00 26 08 80 09 00 00 00 00 00 00 A0 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 26 08 00 90 00 A2 [10:29:28]RAPDU: 90 00 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_ClearQueue done [10:29:28]KKMCreateOFDPacket [10:29:28]OFDProtocolAddRootSTLVToBuf [10:29:28]FM_MakeSignedData [10:29:28]FM_MakeSignedData [10:29:28]SAM_PROTO_SignData [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 0D 01 02 [10:29:28]Write to MH i2c: E2 08 00 27 08 80 0D 01 02 00 00 00 00 A8 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 27 08 00 90 00 A3 [10:29:28]RAPDU: 90 00 [10:29:28]wFMCommunicate OK [10:29:28]wFMCommunicate request_size=255 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 07 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 [10:29:28]Write to MH i2c: E2 02 01 28 08 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 07 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 00 00 76 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 28 08 00 90 00 A4 [10:29:28]RAPDU: 90 00 [10:29:28]wFMCommunicate OK [10:29:28]wFMCommunicate request_size=35 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EC 00 00 35 04 06 00 DB E4 10 63 9C 83 [10:29:28]Write to MH i2c: E2 26 00 29 08 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EC 00 00 35 04 06 00 DB E4 10 63 9C 83 00 00 4B [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 03 00 29 08 00 90 00 A5 [10:29:28]RAPDU: 90 00 [10:29:28]wFMCommunicate OK [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 0D 03 02 [10:29:28]Write to MH i2c: E2 08 00 2A 08 80 0D 03 02 00 00 00 00 AD [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0B 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0B 00 2A 08 00 52 DB 47 19 82 97 5D 86 90 00 37 [10:29:28]RAPDU: 52 DB 47 19 82 97 5D 86 90 00 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_SignData done [10:29:28]FM_MakeSignedData done [10:29:28]CreateOFDProtocolMessage [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 11 00 00 [10:29:28]Write to MH i2c: E2 08 00 2B 08 80 11 00 00 00 00 00 00 AD [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 17 00 [10:29:28]MH_I2C_Read... [10:29:28]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 36 37 34 90 00 04 [10:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:29:28]wFMCommunicate OK [10:29:28]CreateOFDProtocolMessage done [10:29:28]OFDSenderStorePacket 60524 [10:29:28]StoreOFDPacket docnum=60524 [10:29:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 28 01 00 00 3A 5B 20 01 ED DF 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 07 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EC 00 00 35 04 06 00 DB E4 10 63 9C 83 52 DB 47 19 82 97 5D 86 [10:29:28]CheckFolder [10:29:28]dirname=/storage/ofd_packets [10:29:28]CheckFolder done [10:29:28]ProducePacketName [10:29:28]name=ofd_packets/00060524 [10:29:28]NVStorageSaveData ofd_packets/00060524 [10:29:28]File name is /storage/ofd_packets/00060524 [10:29:28]Write 326 bytes [10:29:28]NVStorageSaveData done [10:29:28]OFDSenderStorePacket done [10:29:28]KKMCreateOFDPacket done [10:29:28]NVStorageSaveData kkm_last_timestamp [10:29:28]File name is /storage/kkm_last_timestamp [10:29:28]Write 4 bytes [10:29:28]NVStorageSaveData done [10:29:28]ExternCall_PrintAddStr [10:29:28]wPrintStart [10:29:28]Write to MH i2c: 01 00 00 2C 08 34 [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 07 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: 01 07 00 2C 08 00 00 00 00 00 FF 0F 49 [10:29:28]RasterBufferAndPrint [10:29:28]line Счет N : (3)200156 [10:29:28]line ИНН: 02508201610067 [10:29:28]line Контрольно-Кассовый Чек [10:29:28]line ПРОДАЖА [10:29:28]line Товар: 4700000310043 [10:29:28]line Вода Жалалабат 27 1л [10:29:28]line 1.000 * 79.00 [10:29:28]line = 79.00 [10:29:28]line НДС 12% НСП 1% [10:29:28]line > о реализуемом товаре [10:29:28]line ИТОГО: 79.00 [10:29:28]line НСП 1% : 0.70 [10:29:28]line НДС 12% : 8.39 [10:29:28]line Наличными: 79.00 [10:29:28]line Безнал.: 0.00 [10:29:28]line Место: АЗС № 87 "Партнер Нефть" [10:29:28]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:29:28]line СНО: Общий режим [10:29:28]line Чек 56 27.10.2024 10:29 [10:29:28]line Смена: 532 ФФД: 1.0 [10:29:28]line ЗНМ: 0300000084 [10:29:28]line РНМ: 0000000000091622 [10:29:28]line Версия ККМ: 001 [10:29:28]line ФМ: 0000000000874674 [10:29:28]line ФД: 60524 [10:29:28]line ФПД: 241772573990019 [10:29:28]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T102927&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60524&fm=241772573990019&tin=02508201610067®Number=0000000000091622&sum=7900 [10:29:29]OFD Sender: Processing packet 60524 [packets to send 30, broken 29] [10:29:29]ProducePacketName [10:29:29]name=ofd_packets/00060524 [10:29:29]OFD Sender: To server: pG, [10:29:29]CommunicateWithHost lk.salyk.kg:30040 [10:29:29]ConnectInit lk.salyk.kg [10:29:29]line 0 [10:29:29]written 0, free lines is 4095 [10:29:29]Connected sock=10 [10:29: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 36 37 34 28 01 00 00 3A 5B 20 01 ED DF 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 07 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6C EC 00 00 35 04 06 00 DB E4 10 63 9C 83 52 DB 47 19 82 97 5D 86 [10:29:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 6B 00 47 00 CF 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 36 37 34 10 04 04 00 6C EC 00 00 F4 03 04 00 EF BB 1D 67 B6 04 01 00 00 A2 91 22 AF CA B1 A6 07 [10:29:29]CommunicateWithHost err = 0 [10:29:29]CheckOFDResponse [10:29:29]1017 (14) - 77093643461234 [10:29:29]1041 (16) - 0000000000874674 [10:29:29]1040 (4) - 60524 [10:29:29]1012 (4) - 27.10.2024 04:05 [10:29:29]1206 (1) - 0 [10:29:29]OFD Sender: Remove packet 60524 [10:29:29]ProducePacketName [10:29:29]name=ofd_packets/00060524 [10:29:29]NVStorageDeleteData [10:29:29]Write to MH i2c: 01 00 00 54 08 5C [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: 01 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: 01 07 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: 01 07 00 54 08 00 00 00 00 00 16 0D 86 [10:29:29]RasterBufferAndPrint [10:29:29]line [10:29:29]line [10:29:29]line [10:29:29]line [10:29:29]line [10:29:29]written 0, free lines is 3357 [10:29:29]MH_Cut [10:29:29]Write to MH i2c: D1 01 00 5B 08 01 35 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: D1 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: D1 01 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: D1 01 00 5B 08 00 34 [10:29:29]Write to MH i2c: 01 00 00 5C 08 64 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]OFD Sender: No OFD packet to send [10:29:30]*** Cut start [10:29:30]*** Partial cut [10:29:30]*** CUTSNS_PIN = 1 [10:29:30]*** CUTSNS_PIN = 0 [10:29:30]*** Brake cut motor [10:29:30]Read from MH i2c: 01 [10:29:30]MH_I2C_Read... [10:29:30]*** Stop cut motor [10:29:30]*** Cut end [10:29:30]Read from MH i2c: 01 07 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 5C 08 00 00 00 00 00 FF 0F 79 [10:29:30]process_action close_receipt done [10:29:30]requested_data is exist [10:29:30]produce_requested_data [10:29:30]requested_item fm.sn is exist - process it [10:29:30]wFMCommunicate request_size=4 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 11 00 00 [10:29:30]Write to MH i2c: E2 08 00 5D 08 80 11 00 00 00 00 00 00 DF [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 17 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 17 00 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 36 [10:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:29:30]wFMCommunicate OK [10:29:30]requested_item fd.num is exist - process it [10:29:30]SAM_PROTO_GetFieldsCounters [10:29:30]wFMCommunicate request_size=4 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 13 00 00 [10:29:30]Write to MH i2c: E2 08 00 5E 08 80 13 00 00 00 00 00 00 E2 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:31]Read from MH i2c: E2 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: E2 62 00 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: E2 62 00 5E 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:29: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:31]wFMCommunicate OK [10:29:31]SAM_PROTO_GetFieldsCounters done [10:29:31]requested_item shift.num is exist - process it [10:29:31]requested_item shift.opened is exist - process it [10:29:31]req_shift_opened [10:29:31]FM_GetShiftState [10:29:31]SAM_PROTO_GetShiftState [10:29:31]wFMCommunicate request_size=4 [10:29:31]MH_SAM_APDU [10:29:31]CAPDU: 80 13 01 00 [10:29:31]Write to MH i2c: E2 08 00 5F 08 80 13 01 00 00 00 00 00 E4 [10:29:31]Write i2c OK [10:29:31]MH_I2C_Read... [10:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:31]Read from MH i2c: E2 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: E2 0E 00 [10:29:31]MH_I2C_Read... [10:29:31]Read from MH i2c: E2 0E 00 5F 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 80 [10:29:31]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:29:31]wFMCommunicate OK [10:29:31]SAM_PROTO_GetShiftState done [10:29:31]FM_GetShiftState done [10:29:31]req_shift_opened done [10:29:31]requested_item shift.open_date is exist - process it [10:29:31]req_shift_open_date [10:29:31]req_shift_open_date done [10:29:31]produce_requested_data done [10:29:31]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60524,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:29:31]process_action_free close_receipt [10:29:31]json_value_free [10:29:31]json_value_free done [10:29:31]process_json_proto returns [10:29:31]Send response to host [10:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60524,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:29:31]free response buf [10:29:31]execute_script done [10:29:31]execute_script returns [10:29:31]free content buf [10:29:31]Sock 9.Close socket [10:29:31]Sock 9.Thread stoped [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:51]accept exits with 7 [10:30:51]New connection [10:30:51]New thread 3067362660 created [10:30:51]Thread 3067219300 joined [10:30:51]Waiting for new connection... [10:30:51] Sock 7.Parse request [10:30:51]Sock 7.Check first char [10:30:51]Sock 7.First char is OK [10:30:51]request: POST /json_proto HTTP/1.0 [10:30:51]Method: POST [10:30:51]URL: /json_proto [10:30:51]Method is POST - this is cgi request [10:30:51]url: /json_proto [10:30:51]query_string will be loaded in cgi processing [10:30:51]execute_cgi json_proto POST (null) [10:30:51]execute_cgi path=json_proto method=POST [10:30:51]POST find Content-Length [10:30:51]Host: 172.17.42.196:8080 [10:30:51]Content-Length: 678 [10:30:51]Content-Type: application/json [10:30:51] [10:30:51]POST finish read [10:30:51]Found Content-Length = 678 [10:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:51]execute_script... [10:30: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)3311561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:51]POST & json_proto [10:30:51]process_json_proto [10:30:51]json parsed OK: [10:30:51]protocol is kg_v1.0 [10:30:51]action value=close_receipt [10:30:51]process_action close_receipt [10:30:51]cmd_close_receipt [10:30:51]MH_GetDate [10:30:51]Write to MH i2c: F0 00 00 60 08 57 [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: F0 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: F0 09 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: F0 09 00 60 08 00 5C 16 1E 67 FF C4 6B 64 E9 [10:30:51]GetLastDocTimeStamp 1730024967 [10:30:51]current date 1730025052 [10:30:51]FM_GetShiftState [10:30:51]SAM_PROTO_GetShiftState [10:30:51]wFMCommunicate request_size=4 [10:30:51]MH_SAM_APDU [10:30:51]CAPDU: 80 13 01 00 [10:30:51]Write to MH i2c: E2 08 00 61 08 80 13 01 00 00 00 00 00 E6 [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:51]Read from MH i2c: E2 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 0E 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: E2 0E 00 61 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 82 [10:30:51]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:30:51]wFMCommunicate OK [10:30:51]SAM_PROTO_GetShiftState done [10:30:51]FM_GetShiftState done [10:30:51]opened in 1729989505 [10:30:51]opened+sec_in_day 1730075905 [10:30:51]quantity*price = 50041 [10:30:51]sum+1 = 50042 [10:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 57 27.10.2024 10:30 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60525 ФПД: 28306980484270 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103052&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60525&fm=28306980484270&tin=02508201610067®Number=0000000000091622&sum=50000 [10:30:52]StoreToDocumentArchive [10:30:52]shift 532 fd 60525 [10:30:52]save to /storage/0532/doc_00060525 [10:30:52]save last doc name /storage/0532/doc_00060525 to /storage/kkm_last_doc_name [10:30:52]save OK [10:30:52]Clear old archive folders... [10:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:52]tlvbuf is 0021D370 [10:30:52]SAM_PROTO_ClearQueue [10:30:52]wFMCommunicate request_size=4 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 09 00 00 [10:30:52]Write to MH i2c: E2 08 00 6E 08 80 09 00 00 00 00 00 00 E8 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:52]Read from MH i2c: E2 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 03 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [10:30:52]RAPDU: 90 00 [10:30:52]wFMCommunicate OK [10:30:52]SAM_PROTO_ClearQueue done [10:30:52]KKMCreateOFDPacket [10:30:52]OFDProtocolAddRootSTLVToBuf [10:30:52]FM_MakeSignedData [10:30:52]FM_MakeSignedData [10:30:52]SAM_PROTO_SignData [10:30:52]wFMCommunicate request_size=4 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 0D 01 02 [10:30:52]Write to MH i2c: E2 08 00 6F 08 80 0D 01 02 00 00 00 00 F0 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:52]Read from MH i2c: E2 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 03 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [10:30:52]RAPDU: 90 00 [10:30:52]wFMCommunicate OK [10:30:52]wFMCommunicate request_size=255 [10:30:52]MH_SAM_APDU [10:30: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EC 00 00 35 04 06 00 19 [10:30:52]Write to MH i2c: E2 02 01 70 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EC 00 00 35 04 06 00 19 00 00 35 [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:52]Read from MH i2c: E2 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 03 00 [10:30:52]MH_I2C_Read... [10:30:52]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [10:30:52]RAPDU: 90 00 [10:30:52]wFMCommunicate OK [10:30:52]wFMCommunicate request_size=10 [10:30:52]MH_SAM_APDU [10:30:52]CAPDU: 80 0D 02 02 05 BE BB 84 34 AE [10:30:52]Write to MH i2c: E2 0D 00 71 08 80 0D 02 02 05 00 BE BB 84 34 AE 00 00 DC [10:30:52]Write i2c OK [10:30:52]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 03 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 03 00 71 08 00 90 00 ED [10:30:53]RAPDU: 90 00 [10:30:53]wFMCommunicate OK [10:30:53]wFMCommunicate request_size=4 [10:30:53]MH_SAM_APDU [10:30:53]CAPDU: 80 0D 03 02 [10:30:53]Write to MH i2c: E2 08 00 72 08 80 0D 03 02 00 00 00 00 F5 [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0B 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0B 00 72 08 00 5C 3E 4B 95 FC 10 03 6E 90 00 ED [10:30:53]RAPDU: 5C 3E 4B 95 FC 10 03 6E 90 00 [10:30:53]wFMCommunicate OK [10:30:53]SAM_PROTO_SignData done [10:30:53]FM_MakeSignedData done [10:30:53]CreateOFDProtocolMessage [10:30:53]wFMCommunicate request_size=4 [10:30:53]MH_SAM_APDU [10:30:53]CAPDU: 80 11 00 00 [10:30:53]Write to MH i2c: E2 08 00 73 08 80 11 00 00 00 00 00 00 F5 [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 17 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 17 00 73 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 4C [10:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:30:53]wFMCommunicate OK [10:30:53]CreateOFDProtocolMessage done [10:30:53]OFDSenderStorePacket 60525 [10:30:53]StoreOFDPacket docnum=60525 [10:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 92 FA 07 01 AE 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EC 00 00 35 04 06 00 19 BE BB 84 34 AE 5C 3E 4B 95 FC 10 03 6E [10:30:53]CheckFolder [10:30:53]dirname=/storage/ofd_packets [10:30:53]CheckFolder done [10:30:53]ProducePacketName [10:30:53]name=ofd_packets/00060525 [10:30:53]NVStorageSaveData ofd_packets/00060525 [10:30:53]File name is /storage/ofd_packets/00060525 [10:30:53]Write 301 bytes [10:30:53]NVStorageSaveData done [10:30:53]OFDSenderStorePacket done [10:30:53]KKMCreateOFDPacket done [10:30:53]NVStorageSaveData kkm_last_timestamp [10:30:53]File name is /storage/kkm_last_timestamp [10:30:53]Write 4 bytes [10:30:53]NVStorageSaveData done [10:30:53]ExternCall_PrintAddStr [10:30:53]wPrintStart [10:30:53]Write to MH i2c: 01 00 00 74 08 7C [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: 01 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: 01 07 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: 01 07 00 74 08 00 00 00 00 00 FF 0F 91 [10:30:53]RasterBufferAndPrint [10:30:53]line Счет N : (1)3311561 [10:30:53]line ИНН: 02508201610067 [10:30:53]line Контрольно-Кассовый Чек [10:30:53]line ПРОДАЖА [10:30:53]line ТРК (МРК, ГНК) : 22 [10:30:53]line Товар: 2710124130 [10:30:53]line Аи-92-К-4 [10:30:53]line 7.480 * 66.90 [10:30:53]line = 500.41 [10:30:53]line НДС 12% НСП 1% [10:30:53]line > о реализуемом товаре [10:30:53]line ОКРУГЛЕНИЕ: -0.41 [10:30:53]line ИТОГО: 500.00 [10:30:53]line Внесено: 500.00 [10:30:53]line СДАЧА: 0.00 [10:30:53]line НСП 1% : 4.43 [10:30:53]line НДС 12% : 53.14 [10:30:53]line Наличными: 500.00 [10:30:53]line Безнал.: 0.00 [10:30:53]line Место: АЗС № 87 "Партнер Нефть" [10:30:53]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:30:53]line СНО: Общий режим [10:30:53]line Чек 57 27.10.2024 10:30 [10:30:53]line Смена: 532 ФФД: 1.0 [10:30:53]line ЗНМ: 0300000084 [10:30:53]line РНМ: 0000000000091622 [10:30:53]line Версия ККМ: 001 [10:30:53]line ФМ: 0000000000874674 [10:30:53]line ФД: 60525 [10:30:53]line ФПД: 28306980484270 [10:30:53]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103052&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60525&fm=28306980484270&tin=02508201610067®Number=0000000000091622&sum=50000 [10:30:53]OFD Sender: Processing packet 60525 [packets to send 30, broken 29] [10:30:53]ProducePacketName [10:30:53]name=ofd_packets/00060525 [10:30:53]OFD Sender: To server: pG, [10:30:53]CommunicateWithHost lk.salyk.kg:30040 [10:30:53]ConnectInit lk.salyk.kg [10:30:53]written 0, free lines is 4095 [10:30:53]Connected sock=10 [10:30: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 36 37 34 0F 01 00 00 92 FA 07 01 AE 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5C 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EC 00 00 35 04 06 00 19 BE BB 84 34 AE 5C 3E 4B 95 FC 10 03 6E [10:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 EC A3 47 00 34 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6D EC 00 00 F4 03 04 00 44 BC 1D 67 B6 04 01 00 00 13 40 3E 8D 96 DC 98 12 [10:30:53]CommunicateWithHost err = 0 [10:30:53]CheckOFDResponse [10:30:53]1017 (14) - 77093643461234 [10:30:53]1041 (16) - 0000000000874674 [10:30:53]1040 (4) - 60525 [10:30:53]1012 (4) - 27.10.2024 04:06 [10:30:53]1206 (1) - 0 [10:30:53]OFD Sender: Remove packet 60525 [10:30:53]ProducePacketName [10:30:53]name=ofd_packets/00060525 [10:30:53]NVStorageDeleteData [10:30:53]Write to MH i2c: 01 00 00 9F 08 A7 [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: 01 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: 01 07 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: 01 07 00 9F 08 00 00 00 00 00 DC 0C 96 [10:30:53]RasterBufferAndPrint [10:30:53]line [10:30:53]line [10:30:53]line [10:30:53]line [10:30:53]line [10:30:53]written 0, free lines is 3298 [10:30:53]MH_Cut [10:30:53]Write to MH i2c: D1 01 00 A6 08 01 80 [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: D1 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: D1 01 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: D1 01 00 A6 08 00 7F [10:30:53]Write to MH i2c: 01 00 00 A7 08 AF [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:54]OFD Sender: No OFD packet to send [10:30:54]*** Cut start [10:30:54]*** Partial cut [10:30:54]*** CUTSNS_PIN = 1 [10:30:54]*** CUTSNS_PIN = 0 [10:30:54]*** Brake cut motor [10:30:55]Read from MH i2c: 01 [10:30:55]MH_I2C_Read... [10:30:55]*** Stop cut motor [10:30:55]*** Cut end [10:30:55]Read from MH i2c: 01 07 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 07 00 A7 08 00 00 00 00 00 FF 0F C4 [10:30:55]process_action close_receipt done [10:30:55]requested_data is exist [10:30:55]produce_requested_data [10:30:55]requested_item fm.sn is exist - process it [10:30:55]wFMCommunicate request_size=4 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 11 00 00 [10:30:55]Write to MH i2c: E2 08 00 A8 08 80 11 00 00 00 00 00 00 2A [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 17 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 17 00 A8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 81 [10:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:30:55]wFMCommunicate OK [10:30:55]requested_item fd.num is exist - process it [10:30:55]SAM_PROTO_GetFieldsCounters [10:30:55]wFMCommunicate request_size=4 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 13 00 00 [10:30:55]Write to MH i2c: E2 08 00 A9 08 80 13 00 00 00 00 00 00 2D [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 62 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 62 00 A9 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:30: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:55]wFMCommunicate OK [10:30:55]SAM_PROTO_GetFieldsCounters done [10:30:55]requested_item shift.num is exist - process it [10:30:55]requested_item shift.opened is exist - process it [10:30:55]req_shift_opened [10:30:55]FM_GetShiftState [10:30:55]SAM_PROTO_GetShiftState [10:30:55]wFMCommunicate request_size=4 [10:30:55]MH_SAM_APDU [10:30:55]CAPDU: 80 13 01 00 [10:30:55]Write to MH i2c: E2 08 00 AA 08 80 13 01 00 00 00 00 00 2F [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:55]Read from MH i2c: E2 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 0E 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: E2 0E 00 AA 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CB [10:30:55]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:30:55]wFMCommunicate OK [10:30:55]SAM_PROTO_GetShiftState done [10:30:55]FM_GetShiftState done [10:30:55]req_shift_opened done [10:30:55]requested_item shift.open_date is exist - process it [10:30:55]req_shift_open_date [10:30:55]req_shift_open_date done [10:30:55]produce_requested_data done [10:30:55]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60525,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:30:55]process_action_free close_receipt [10:30:55]json_value_free [10:30:55]json_value_free done [10:30:55]process_json_proto returns [10:30:55]Send response to host [10:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60525,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:30:55]free response buf [10:30:55]execute_script done [10:30:55]execute_script returns [10:30:55]free content buf [10:30:55]Sock 7.Close socket [10:30:55]Sock 7.Thread stoped [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:10]accept exits with 9 [10:31:10]New connection [10:31:10]New thread 3067219300 created [10:31:10]Thread 3067362660 joined [10:31:10]Waiting for new connection... [10:31:10] Sock 9.Parse request [10:31:10]Sock 9.Check first char [10:31:10]Sock 9.First char is OK [10:31:10]request: POST /json_proto HTTP/1.0 [10:31:10]Method: POST [10:31:10]URL: /json_proto [10:31:10]Method is POST - this is cgi request [10:31:10]url: /json_proto [10:31:10]query_string will be loaded in cgi processing [10:31:10]execute_cgi json_proto POST (null) [10:31:10]execute_cgi path=json_proto method=POST [10:31:10]POST find Content-Length [10:31:10]Host: 172.17.42.196:8080 [10:31:10]Content-Length: 748 [10:31:10]Content-Type: application/json [10:31:10] [10:31:10]POST finish read [10:31:10]Found Content-Length = 748 [10:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200157", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:10]execute_script... [10:31:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200157", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:10]POST & json_proto [10:31:10]process_json_proto [10:31:10]json parsed OK: [10:31:10]protocol is kg_v1.0 [10:31:10]action value=close_receipt [10:31:10]process_action close_receipt [10:31:10]cmd_close_receipt [10:31:10]MH_GetDate [10:31:10]Write to MH i2c: F0 00 00 AB 08 A2 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: F0 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: F0 09 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: F0 09 00 AB 08 00 6F 16 1E 67 FF C4 6B 64 47 [10:31:10]GetLastDocTimeStamp 1730025052 [10:31:10]current date 1730025071 [10:31:10]FM_GetShiftState [10:31:10]SAM_PROTO_GetShiftState [10:31:10]wFMCommunicate request_size=4 [10:31:10]MH_SAM_APDU [10:31:10]CAPDU: 80 13 01 00 [10:31:10]Write to MH i2c: E2 08 00 AC 08 80 13 01 00 00 00 00 00 31 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 AC 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CD [10:31:11]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:31:11]wFMCommunicate OK [10:31:11]SAM_PROTO_GetShiftState done [10:31:11]FM_GetShiftState done [10:31:11]opened in 1729989505 [10:31:11]opened+sec_in_day 1730075905 [10:31:11]quantity*price = 14400 [10:31:11]sum+1 = 14401 [10:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 58 27.10.2024 10:31 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60526 ФПД: 7315850249504 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103111&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60526&fm=7315850249504&tin=02508201610067®Number=0000000000091622&sum=14400 0 [10:31:11]StoreToDocumentArchive [10:31:11]shift 532 fd 60526 [10:31:11]save to /storage/0532/doc_00060526 [10:31:11]save last doc name /storage/0532/doc_00060526 to /storage/kkm_last_doc_name [10:31:11]save OK [10:31:11]Clear old archive folders... [10:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:31:11]tlvbuf is 0020DF90 [10:31:11]SAM_PROTO_ClearQueue [10:31:11]wFMCommunicate request_size=4 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 09 00 00 [10:31:11]Write to MH i2c: E2 08 00 B9 08 80 09 00 00 00 00 00 00 33 [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 03 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [10:31:11]RAPDU: 90 00 [10:31:11]wFMCommunicate OK [10:31:11]SAM_PROTO_ClearQueue done [10:31:11]KKMCreateOFDPacket [10:31:11]OFDProtocolAddRootSTLVToBuf [10:31:11]FM_MakeSignedData [10:31:11]FM_MakeSignedData [10:31:11]SAM_PROTO_SignData [10:31:11]wFMCommunicate request_size=4 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 0D 01 02 [10:31:11]Write to MH i2c: E2 08 00 BA 08 80 0D 01 02 00 00 00 00 3B [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 03 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [10:31:11]RAPDU: 90 00 [10:31:11]wFMCommunicate OK [10:31:11]wFMCommunicate request_size=255 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6F 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [10:31:11]Write to MH i2c: E2 02 01 BB 08 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6F 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 E6 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 BB 08 00 90 00 37 [10:31:12]RAPDU: 90 00 [10:31:12]wFMCommunicate OK [10:31:12]wFMCommunicate request_size=32 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EC 00 00 35 04 06 00 06 A7 5A A7 C5 20 [10:31:12]Write to MH i2c: E2 23 00 BC 08 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EC 00 00 35 04 06 00 06 A7 5A A7 C5 20 00 00 8C [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 03 00 BC 08 00 90 00 38 [10:31:12]RAPDU: 90 00 [10:31:12]wFMCommunicate OK [10:31:12]wFMCommunicate request_size=4 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 0D 03 02 [10:31:12]Write to MH i2c: E2 08 00 BD 08 80 0D 03 02 00 00 00 00 40 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 0B 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 0B 00 BD 08 00 91 0F 23 91 C6 2A 40 92 90 00 57 [10:31:12]RAPDU: 91 0F 23 91 C6 2A 40 92 90 00 [10:31:12]wFMCommunicate OK [10:31:12]SAM_PROTO_SignData done [10:31:12]FM_MakeSignedData done [10:31:12]CreateOFDProtocolMessage [10:31:12]wFMCommunicate request_size=4 [10:31:12]MH_SAM_APDU [10:31:12]CAPDU: 80 11 00 00 [10:31:12]Write to MH i2c: E2 08 00 BE 08 80 11 00 00 00 00 00 00 40 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:12]Read from MH i2c: E2 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 17 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: E2 17 00 BE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 97 [10:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:31:12]wFMCommunicate OK [10:31:12]CreateOFDProtocolMessage done [10:31:12]OFDSenderStorePacket 60526 [10:31:12]StoreOFDPacket docnum=60526 [10:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 41 B8 1D 01 D4 F1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6F 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EC 00 00 35 04 06 00 06 A7 5A A7 C5 20 91 0F 23 91 C6 2A 40 92 [10:31:12]CheckFolder [10:31:12]dirname=/storage/ofd_packets [10:31:12]CheckFolder done [10:31:12]ProducePacketName [10:31:12]name=ofd_packets/00060526 [10:31:12]NVStorageSaveData ofd_packets/00060526 [10:31:12]File name is /storage/ofd_packets/00060526 [10:31:12]Write 323 bytes [10:31:12]NVStorageSaveData done [10:31:12]OFDSenderStorePacket done [10:31:12]KKMCreateOFDPacket done [10:31:12]NVStorageSaveData kkm_last_timestamp [10:31:12]File name is /storage/kkm_last_timestamp [10:31:12]Write 4 bytes [10:31:12]NVStorageSaveData done [10:31:12]ExternCall_PrintAddStr [10:31:12]wPrintStart [10:31:12]Write to MH i2c: 01 00 00 BF 08 C7 [10:31:12]Write i2c OK [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: 01 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: 01 07 00 [10:31:12]MH_I2C_Read... [10:31:12]Read from MH i2c: 01 07 00 BF 08 00 00 00 00 00 FF 0F DC [10:31:12]RasterBufferAndPrint [10:31:12]line Счет N : (3)200157 [10:31:12]line ИНН: 02508201610067 [10:31:12]line Контрольно-Кассовый Чек [10:31:12]line ПРОДАЖА [10:31:12]line Товар: 48747059 [10:31:12]line Сигареты Winston Legend Blue [10:31:12]line 1.000 * 144.00 [10:31:12]line = 144.00 [10:31:12]line НДС 12% НСП 1% [10:31:12]line > о реализуемом товаре [10:31:12]line ИТОГО: 144.00 [10:31:12]line НСП 1% : 1.27 [10:31:12]line НДС 12% : 15.29 [10:31:12]line Наличными: 0.00 [10:31:12]line Безнал.: 144.00 [10:31:12]line Место: АЗС № 87 "Партнер Нефть" [10:31:12]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:31:12]line СНО: Общий режим [10:31:12]line Чек 58 27.10.2024 10:31 [10:31:12]line Смена: 532 ФФД: 1.0 [10:31:12]line ЗНМ: 0300000084 [10:31:12]line РНМ: 0000000000091622 [10:31:12]line Версия ККМ: 001 [10:31:12]line Платежная система: Mbank [10:31:12]line ФМ: 0000000000874674 [10:31:12]line ФД: 60526 [10:31:12]line ФПД: 7315850249504 [10:31:12]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103111&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60526&fm=7315850249504&tin=02508201610067®Number=0000000000091622&sum=14400 [10:31:12]line 0 [10:31:12]OFD Sender: Processing packet 60526 [packets to send 30, broken 29] [10:31:12]ProducePacketName [10:31:12]name=ofd_packets/00060526 [10:31:12]OFD Sender: To server: pG, [10:31:12]CommunicateWithHost lk.salyk.kg:30040 [10:31:12]ConnectInit lk.salyk.kg [10:31:12]written 0, free lines is 4095 [10:31:12]Connected sock=10 [10:31: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 36 37 34 25 01 00 00 41 B8 1D 01 D4 F1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 6F 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6E EC 00 00 35 04 06 00 06 A7 5A A7 C5 20 91 0F 23 91 C6 2A 40 92 [10:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E4 92 47 00 70 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 36 37 34 10 04 04 00 6E EC 00 00 F4 03 04 00 57 BC 1D 67 B6 04 01 00 00 DF 96 16 A1 85 08 40 BE [10:31:13]CommunicateWithHost err = 0 [10:31:13]CheckOFDResponse [10:31:13]1017 (14) - 77093643461234 [10:31:13]1041 (16) - 0000000000874674 [10:31:13]1040 (4) - 60526 [10:31:13]1012 (4) - 27.10.2024 04:06 [10:31:13]1206 (1) - 0 [10:31:13]OFD Sender: Remove packet 60526 [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00060526 [10:31:13]NVStorageDeleteData [10:31:13]Write to MH i2c: 01 00 00 E9 08 F1 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 E9 08 00 00 00 00 00 CA 0C CE [10:31:13]RasterBufferAndPrint [10:31:13]line [10:31:13]line [10:31:13]line [10:31:13]line [10:31:13]line [10:31:13]written 0, free lines is 3281 [10:31:13]MH_Cut [10:31:13]Write to MH i2c: D1 01 00 F0 08 01 CA [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: D1 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: D1 01 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: D1 01 00 F0 08 00 C9 [10:31:13]Write to MH i2c: 01 00 00 F1 08 F9 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]OFD Sender: No OFD packet to send [10:31:14]*** Cut start [10:31:14]*** Partial cut [10:31:14]*** CUTSNS_PIN = 1 [10:31:14]*** CUTSNS_PIN = 0 [10:31:14]*** Brake cut motor [10:31:14]Read from MH i2c: 01 [10:31:14]MH_I2C_Read... [10:31:14]*** Stop cut motor [10:31:14]*** Cut end [10:31:14]Read from MH i2c: 01 07 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 07 00 F1 08 00 00 00 00 00 FF 0F 0E [10:31:14]process_action close_receipt done [10:31:14]requested_data is exist [10:31:14]produce_requested_data [10:31:14]requested_item fm.sn is exist - process it [10:31:14]wFMCommunicate request_size=4 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 11 00 00 [10:31:14]Write to MH i2c: E2 08 00 F2 08 80 11 00 00 00 00 00 00 74 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 17 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 17 00 F2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CB [10:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:31:14]wFMCommunicate OK [10:31:14]requested_item fd.num is exist - process it [10:31:14]SAM_PROTO_GetFieldsCounters [10:31:14]wFMCommunicate request_size=4 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 13 00 00 [10:31:14]Write to MH i2c: E2 08 00 F3 08 80 13 00 00 00 00 00 00 77 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 62 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 62 00 F3 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:31: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:14]wFMCommunicate OK [10:31:14]SAM_PROTO_GetFieldsCounters done [10:31:14]requested_item shift.num is exist - process it [10:31:14]requested_item shift.opened is exist - process it [10:31:14]req_shift_opened [10:31:14]FM_GetShiftState [10:31:14]SAM_PROTO_GetShiftState [10:31:14]wFMCommunicate request_size=4 [10:31:14]MH_SAM_APDU [10:31:14]CAPDU: 80 13 01 00 [10:31:14]Write to MH i2c: E2 08 00 F4 08 80 13 01 00 00 00 00 00 79 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:14]Read from MH i2c: E2 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 0E 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: E2 0E 00 F4 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 15 [10:31:14]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:31:14]wFMCommunicate OK [10:31:14]SAM_PROTO_GetShiftState done [10:31:14]FM_GetShiftState done [10:31:14]req_shift_opened done [10:31:14]requested_item shift.open_date is exist - process it [10:31:14]req_shift_open_date [10:31:14]req_shift_open_date done [10:31:14]produce_requested_data done [10:31:14]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60526,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:31:14]process_action_free close_receipt [10:31:14]json_value_free [10:31:14]json_value_free done [10:31:14]process_json_proto returns [10:31:14]Send response to host [10:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60526,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:31:14]free response buf [10:31:14]execute_script done [10:31:14]execute_script returns [10:31:14]free content buf [10:31:14]Sock 9.Close socket [10:31:14]Sock 9.Thread stoped [10:31:16]accept exits with 7 [10:31:16]New connection [10:31:16]New thread 3067362660 created [10:31:16]Thread 3067219300 joined [10:31:16]Waiting for new connection... [10:31:16] Sock 7.Parse request [10:31:16]Sock 7.Check first char [10:31:16]Sock 7.First char is OK [10:31:16]request: POST /json_proto HTTP/1.0 [10:31:16]Method: POST [10:31:16]URL: /json_proto [10:31:16]Method is POST - this is cgi request [10:31:16]url: /json_proto [10:31:16]query_string will be loaded in cgi processing [10:31:16]execute_cgi json_proto POST (null) [10:31:16]execute_cgi path=json_proto method=POST [10:31:16]POST find Content-Length [10:31:16]Host: 172.17.42.196:8080 [10:31:16]Content-Length: 682 [10:31:16]Content-Type: application/json [10:31:16] [10:31:16]POST finish read [10:31:16]Found Content-Length = 682 [10:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:16]execute_script... [10: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)3311564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:16]POST & json_proto [10:31:16]process_json_proto [10:31:16]json parsed OK: [10:31:16]protocol is kg_v1.0 [10:31:16]action value=close_receipt [10:31:16]process_action close_receipt [10:31:16]cmd_close_receipt [10:31:16]MH_GetDate [10:31:16]Write to MH i2c: F0 00 00 F5 08 EC [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: F0 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: F0 09 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: F0 09 00 F5 08 00 75 16 1E 67 FF C4 6B 64 97 [10:31:16]GetLastDocTimeStamp 1730025071 [10:31:16]current date 1730025077 [10:31:16]FM_GetShiftState [10:31:16]SAM_PROTO_GetShiftState [10:31:16]wFMCommunicate request_size=4 [10:31:16]MH_SAM_APDU [10:31:16]CAPDU: 80 13 01 00 [10:31:16]Write to MH i2c: E2 08 00 F6 08 80 13 01 00 00 00 00 00 7B [10:31:16]Write i2c OK [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: E2 [10:31:16]MH_I2C_Read... [10:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:16]Read from MH i2c: E2 0E 00 [10:31:16]MH_I2C_Read... [10:31:16]Read from MH i2c: E2 0E 00 F6 08 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 17 [10:31:16]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:31:16]wFMCommunicate OK [10:31:16]SAM_PROTO_GetShiftState done [10:31:16]FM_GetShiftState done [10:31:16]opened in 1729989505 [10:31:16]opened+sec_in_day 1730075905 [10:31:16]quantity*price = 50063 [10:31:16]sum+1 = 50064 [10:31:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 59 27.10.2024 10:31 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60527 ФПД: 264926920674485 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103117&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60527&fm=264926920674485&tin=02508201610067®Number=0000000000091622&sum=50000 [10:31:17]StoreToDocumentArchive [10:31:17]shift 532 fd 60527 [10:31:17]save to /storage/0532/doc_00060527 [10:31:17]save last doc name /storage/0532/doc_00060527 to /storage/kkm_last_doc_name [10:31:17]save OK [10:31:17]Clear old archive folders... [10:31:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:31:17]tlvbuf is 001D1EF0 [10:31:17]SAM_PROTO_ClearQueue [10:31:17]wFMCommunicate request_size=4 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 09 00 00 [10:31:17]Write to MH i2c: E2 08 00 03 09 80 09 00 00 00 00 00 00 7E [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 03 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [10:31:17]RAPDU: 90 00 [10:31:17]wFMCommunicate OK [10:31:17]SAM_PROTO_ClearQueue done [10:31:17]KKMCreateOFDPacket [10:31:17]OFDProtocolAddRootSTLVToBuf [10:31:17]FM_MakeSignedData [10:31:17]FM_MakeSignedData [10:31:17]SAM_PROTO_SignData [10:31:17]wFMCommunicate request_size=4 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 0D 01 02 [10:31:17]Write to MH i2c: E2 08 00 04 09 80 0D 01 02 00 00 00 00 86 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:17]Read from MH i2c: E2 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 03 00 [10:31:17]MH_I2C_Read... [10:31:17]Read from MH i2c: E2 03 00 04 09 00 90 00 81 [10:31:17]RAPDU: 90 00 [10:31:17]wFMCommunicate OK [10:31:17]wFMCommunicate request_size=255 [10:31:17]MH_SAM_APDU [10:31:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 75 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EC 00 00 35 04 06 00 [10:31:17]Write to MH i2c: E2 02 01 05 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 75 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EC 00 00 35 04 06 00 00 00 36 [10:31:17]Write i2c OK [10:31:17]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:18]Read from MH i2c: E2 03 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 05 09 00 90 00 82 [10:31:18]RAPDU: 90 00 [10:31:18]wFMCommunicate OK [10:31:18]wFMCommunicate request_size=11 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 0D 02 02 06 F0 F3 1A FF 8C B5 [10:31:18]Write to MH i2c: E2 0E 00 06 09 80 0D 02 02 06 00 F0 F3 1A FF 8C B5 00 00 D2 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:18]Read from MH i2c: E2 03 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 03 00 06 09 00 90 00 83 [10:31:18]RAPDU: 90 00 [10:31:18]wFMCommunicate OK [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 0D 03 02 [10:31:18]Write to MH i2c: E2 08 00 07 09 80 0D 03 02 00 00 00 00 8B [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 0B 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 0B 00 07 09 00 28 10 37 15 79 F7 84 E5 90 00 E9 [10:31:18]RAPDU: 28 10 37 15 79 F7 84 E5 90 00 [10:31:18]wFMCommunicate OK [10:31:18]SAM_PROTO_SignData done [10:31:18]FM_MakeSignedData done [10:31:18]CreateOFDProtocolMessage [10:31:18]wFMCommunicate request_size=4 [10:31:18]MH_SAM_APDU [10:31:18]CAPDU: 80 11 00 00 [10:31:18]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:18]Read from MH i2c: E2 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 17 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E2 [10:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:31:18]wFMCommunicate OK [10:31:18]CreateOFDProtocolMessage done [10:31:18]OFDSenderStorePacket 60527 [10:31:18]StoreOFDPacket docnum=60527 [10:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 B6 CB 08 01 E2 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 75 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EC 00 00 35 04 06 00 F0 F3 1A FF 8C B5 28 10 37 15 79 F7 84 E5 [10:31:18]CheckFolder [10:31:18]dirname=/storage/ofd_packets [10:31:18]CheckFolder done [10:31:18]ProducePacketName [10:31:18]name=ofd_packets/00060527 [10:31:18]NVStorageSaveData ofd_packets/00060527 [10:31:18]File name is /storage/ofd_packets/00060527 [10:31:18]Write 302 bytes [10:31:18]NVStorageSaveData done [10:31:18]OFDSenderStorePacket done [10:31:18]KKMCreateOFDPacket done [10:31:18]NVStorageSaveData kkm_last_timestamp [10:31:18]File name is /storage/kkm_last_timestamp [10:31:18]Write 4 bytes [10:31:18]NVStorageSaveData done [10:31:18]ExternCall_PrintAddStr [10:31:18]wPrintStart [10:31:18]Write to MH i2c: 01 00 00 09 09 12 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: 01 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: 01 07 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 FF 0F 27 [10:31:18]RasterBufferAndPrint [10:31:18]line Счет N : (1)3311564 [10:31:18]line ИНН: 02508201610067 [10:31:18]line Контрольно-Кассовый Чек [10:31:18]line ПРОДАЖА [10:31:18]line ТРК (МРК, ГНК) : 5 [10:31:18]line Товар: 2710194210 [10:31:18]line ДТ(л)-К-5 [10:31:18]line 6.570 * 76.20 [10:31:18]line = 500.63 [10:31:18]line НДС 12% НСП 1% [10:31:18]line > о реализуемом товаре [10:31:18]line ОКРУГЛЕНИЕ: -0.63 [10:31:18]line ИТОГО: 500.00 [10:31:18]line Внесено: 500.00 [10:31:18]line СДАЧА: 0.00 [10:31:18]line НСП 1% : 4.43 [10:31:18]line НДС 12% : 53.16 [10:31:18]line Наличными: 500.00 [10:31:18]line Безнал.: 0.00 [10:31:18]line Место: АЗС № 87 "Партнер Нефть" [10:31:18]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:31:18]line СНО: Общий режим [10:31:18]line Чек 59 27.10.2024 10:31 [10:31:18]line Смена: 532 ФФД: 1.0 [10:31:18]line ЗНМ: 0300000084 [10:31:18]line РНМ: 0000000000091622 [10:31:18]line Версия ККМ: 001 [10:31:18]line ФМ: 0000000000874674 [10:31:18]line ФД: 60527 [10:31:18]line ФПД: 264926920674485 [10:31:18]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103117&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60527&fm=264926920674485&tin=02508201610067®Number=0000000000091622&sum=50000 [10:31:18]written 0, free lines is 4095 [10:31:18]OFD Sender: Processing packet 60527 [packets to send 30, broken 29] [10:31:18]ProducePacketName [10:31:18]name=ofd_packets/00060527 [10:31:18]OFD Sender: To server: pG, [10:31:18]CommunicateWithHost lk.salyk.kg:30040 [10:31:18]ConnectInit lk.salyk.kg [10:31:18]Connected sock=10 [10: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 36 37 34 10 01 00 00 B6 CB 08 01 E2 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 75 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 6F EC 00 00 35 04 06 00 F0 F3 1A FF 8C B5 28 10 37 15 79 F7 84 E5 [10:31:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 80 71 47 00 2B 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 36 37 34 10 04 04 00 6F EC 00 00 F4 03 04 00 5D BC 1D 67 B6 04 01 00 00 0A 4F 83 F3 7C 4A 2D 02 [10:31:18]CommunicateWithHost err = 0 [10:31:18]CheckOFDResponse [10:31:18]1017 (14) - 77093643461234 [10:31:18]1041 (16) - 0000000000874674 [10:31:18]1040 (4) - 60527 [10:31:18]1012 (4) - 27.10.2024 04:06 [10:31:18]1206 (1) - 0 [10:31:18]OFD Sender: Remove packet 60527 [10:31:18]ProducePacketName [10:31:18]name=ofd_packets/00060527 [10:31:18]NVStorageDeleteData [10:31:18]Write to MH i2c: 01 00 00 34 09 3D [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: 01 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: 01 07 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: 01 07 00 34 09 00 00 00 00 00 F2 0C 42 [10:31:18]RasterBufferAndPrint [10:31:18]line [10:31:18]line [10:31:18]line [10:31:18]line [10:31:18]line [10:31:18]written 0, free lines is 3330 [10:31:18]MH_Cut [10:31:18]Write to MH i2c: D1 01 00 3B 09 01 16 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: D1 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: D1 01 00 [10:31:18]MH_I2C_Read... [10:31:18]Read from MH i2c: D1 01 00 3B 09 00 15 [10:31:18]Write to MH i2c: 01 00 00 3C 09 45 [10:31:18]Write i2c OK [10:31:18]MH_I2C_Read... [10:31:19]OFD Sender: No OFD packet to send [10:31:19]*** Cut start [10:31:19]*** Partial cut [10:31:19]*** CUTSNS_PIN = 1 [10:31:19]*** CUTSNS_PIN = 0 [10:31:19]*** Brake cut motor [10:31:20]Read from MH i2c: 01 [10:31:20]MH_I2C_Read... [10:31:20]*** Stop cut motor [10:31:20]*** Cut end [10:31:20]Read from MH i2c: 01 07 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 FF 0F 5A [10:31:20]process_action close_receipt done [10:31:20]requested_data is exist [10:31:20]produce_requested_data [10:31:20]requested_item fm.sn is exist - process it [10:31:20]wFMCommunicate request_size=4 [10:31:20]MH_SAM_APDU [10:31:20]CAPDU: 80 11 00 00 [10:31:20]Write to MH i2c: E2 08 00 3D 09 80 11 00 00 00 00 00 00 C0 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:20]Read from MH i2c: E2 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 17 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 17 00 3D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 17 [10:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:31:20]wFMCommunicate OK [10:31:20]requested_item fd.num is exist - process it [10:31:20]SAM_PROTO_GetFieldsCounters [10:31:20]wFMCommunicate request_size=4 [10:31:20]MH_SAM_APDU [10:31:20]CAPDU: 80 13 00 00 [10:31:20]Write to MH i2c: E2 08 00 3E 09 80 13 00 00 00 00 00 00 C3 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:20]Read from MH i2c: E2 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 62 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 62 00 3E 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 6F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:20]wFMCommunicate OK [10:31:20]SAM_PROTO_GetFieldsCounters done [10:31:20]requested_item shift.num is exist - process it [10:31:20]requested_item shift.opened is exist - process it [10:31:20]req_shift_opened [10:31:20]FM_GetShiftState [10:31:20]SAM_PROTO_GetShiftState [10:31:20]wFMCommunicate request_size=4 [10:31:20]MH_SAM_APDU [10:31:20]CAPDU: 80 13 01 00 [10:31:20]Write to MH i2c: E2 08 00 3F 09 80 13 01 00 00 00 00 00 C5 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:20]Read from MH i2c: E2 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 0E 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: E2 0E 00 3F 09 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 61 [10:31:20]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:31:20]wFMCommunicate OK [10:31:20]SAM_PROTO_GetShiftState done [10:31:20]FM_GetShiftState done [10:31:20]req_shift_opened done [10:31:20]requested_item shift.open_date is exist - process it [10:31:20]req_shift_open_date [10:31:20]req_shift_open_date done [10:31:20]produce_requested_data done [10:31:20]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60527,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:31:20]process_action_free close_receipt [10:31:20]json_value_free [10:31:20]json_value_free done [10:31:20]process_json_proto returns [10:31:20]Send response to host [10:31:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60527,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:31:20]free response buf [10:31:20]execute_script done [10:31:20]execute_script returns [10:31:20]free content buf [10:31:20]Sock 7.Close socket [10:31:20]Sock 7.Thread stoped [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:56]accept exits with 9 [10:31:56]New connection [10:31:56]New thread 3067219300 created [10:31:56]Thread 3067362660 joined [10:31:56]Waiting for new connection... [10:31:56] Sock 9.Parse request [10:31:56]Sock 9.Check first char [10:31:56]Sock 9.First char is OK [10:31:56]request: POST /json_proto HTTP/1.0 [10:31:56]Method: POST [10:31:56]URL: /json_proto [10:31:56]Method is POST - this is cgi request [10:31:56]url: /json_proto [10:31:56]query_string will be loaded in cgi processing [10:31:56]execute_cgi json_proto POST (null) [10:31:56]execute_cgi path=json_proto method=POST [10:31:56]POST find Content-Length [10:31:56]Host: 172.17.42.196:8080 [10:31:56]Content-Length: 655 [10:31:56]Content-Type: application/json [10:31:56] [10:31:56]POST finish read [10:31:56]Found Content-Length = 655 [10:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200158", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:56]execute_script... [10:31:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200158", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 2.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:56]POST & json_proto [10:31:56]process_json_proto [10:31:56]json parsed OK: [10:31:56]protocol is kg_v1.0 [10:31:56]action value=close_receipt [10:31:56]process_action close_receipt [10:31:56]cmd_close_receipt [10:31:56]MH_GetDate [10:31:56]Write to MH i2c: F0 00 00 40 09 38 [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 09 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: F0 09 00 40 09 00 9D 16 1E 67 FF C4 6B 64 0B [10:31:56]GetLastDocTimeStamp 1730025077 [10:31:56]current date 1730025117 [10:31:56]FM_GetShiftState [10:31:56]SAM_PROTO_GetShiftState [10:31:56]wFMCommunicate request_size=4 [10:31:56]MH_SAM_APDU [10:31:56]CAPDU: 80 13 01 00 [10:31:56]Write to MH i2c: E2 08 00 41 09 80 13 01 00 00 00 00 00 C7 [10:31:56]Write i2c OK [10:31:56]MH_I2C_Read... [10:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:56]Read from MH i2c: E2 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: E2 0E 00 [10:31:56]MH_I2C_Read... [10:31:56]Read from MH i2c: E2 0E 00 41 09 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 63 [10:31:56]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:31:56]wFMCommunicate OK [10:31:56]SAM_PROTO_GetShiftState done [10:31:56]FM_GetShiftState done [10:31:56]opened in 1729989505 [10:31:56]opened+sec_in_day 1730075905 [10:31:56]quantity*price = 9000 [10:31:56]sum+1 = 9001 [10:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 60 27.10.2024 10:31 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60528 ФПД: 4725594980954 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103157&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60528&fm=4725594980954&tin=02508201610067®Number=0000000000091622&sum=9000 0 [10:31:57]StoreToDocumentArchive [10:31:57]shift 532 fd 60528 [10:31:57]save to /storage/0532/doc_00060528 [10:31:57]save last doc name /storage/0532/doc_00060528 to /storage/kkm_last_doc_name [10:31:57]save OK [10:31:57]Clear old archive folders... [10:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:31:57]tlvbuf is 001C58A0 [10:31:57]SAM_PROTO_ClearQueue [10:31:57]wFMCommunicate request_size=4 [10:31:57]MH_SAM_APDU [10:31:57]CAPDU: 80 09 00 00 [10:31:57]Write to MH i2c: E2 08 00 4E 09 80 09 00 00 00 00 00 00 C9 [10:31:57]Write i2c OK [10:31:57]MH_I2C_Read... [10:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [10:31:58]RAPDU: 90 00 [10:31:58]wFMCommunicate OK [10:31:58]SAM_PROTO_ClearQueue done [10:31:58]KKMCreateOFDPacket [10:31:58]OFDProtocolAddRootSTLVToBuf [10:31:58]FM_MakeSignedData [10:31:58]FM_MakeSignedData [10:31:58]SAM_PROTO_SignData [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 0D 01 02 [10:31:58]Write to MH i2c: E2 08 00 4F 09 80 0D 01 02 00 00 00 00 D1 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 4F 09 00 90 00 CC [10:31:58]RAPDU: 90 00 [10:31:58]wFMCommunicate OK [10:31:58]wFMCommunicate request_size=255 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 9D 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [10:31:58]Write to MH i2c: E2 02 01 50 09 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 9D 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 21 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 50 09 00 90 00 CD [10:31:58]RAPDU: 90 00 [10:31:58]wFMCommunicate OK [10:31:58]wFMCommunicate request_size=41 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EC 00 00 35 04 06 00 04 4C 43 69 02 5A [10:31:58]Write to MH i2c: E2 2C 00 51 09 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EC 00 00 35 04 06 00 04 4C 43 69 02 5A 00 00 5B [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 03 00 51 09 00 90 00 CE [10:31:58]RAPDU: 90 00 [10:31:58]wFMCommunicate OK [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 0D 03 02 [10:31:58]Write to MH i2c: E2 08 00 52 09 80 0D 03 02 00 00 00 00 D6 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0B 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0B 00 52 09 00 68 77 99 07 29 F3 59 3D 90 00 08 [10:31:58]RAPDU: 68 77 99 07 29 F3 59 3D 90 00 [10:31:58]wFMCommunicate OK [10:31:58]SAM_PROTO_SignData done [10:31:58]FM_MakeSignedData done [10:31:58]CreateOFDProtocolMessage [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 11 00 00 [10:31:58]Write to MH i2c: E2 08 00 53 09 80 11 00 00 00 00 00 00 D6 [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 17 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 17 00 53 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2D [10:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:31:58]wFMCommunicate OK [10:31:58]CreateOFDProtocolMessage done [10:31:58]OFDSenderStorePacket 60528 [10:31:58]StoreOFDPacket docnum=60528 [10:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 9E 17 26 01 E5 3D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 9D 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EC 00 00 35 04 06 00 04 4C 43 69 02 5A 68 77 99 07 29 F3 59 3D [10:31:58]CheckFolder [10:31:58]dirname=/storage/ofd_packets [10:31:58]CheckFolder done [10:31:58]ProducePacketName [10:31:58]name=ofd_packets/00060528 [10:31:58]NVStorageSaveData ofd_packets/00060528 [10:31:58]File name is /storage/ofd_packets/00060528 [10:31:58]Write 332 bytes [10:31:58]NVStorageSaveData done [10:31:58]OFDSenderStorePacket done [10:31:58]KKMCreateOFDPacket done [10:31:58]NVStorageSaveData kkm_last_timestamp [10:31:58]File name is /storage/kkm_last_timestamp [10:31:58]Write 4 bytes [10:31:58]NVStorageSaveData done [10:31:58]ExternCall_PrintAddStr [10:31:58]wPrintStart [10:31:58]Write to MH i2c: 01 00 00 54 09 5D [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [10:31:58]RasterBufferAndPrint [10:31:58]line Счет N : (3)200158 [10:31:58]line ИНН: 02508201610067 [10:31:58]line Контрольно-Кассовый Чек [10:31:58]line ПРОДАЖА [10:31:58]line Товар: 4870001159955 [10:31:58]line Вода ASU пит н.газ ПЭТ 1л [10:31:58]line 2.000 * 45.00 [10:31:58]line = 90.00 [10:31:58]line НДС 12% НСП 1% [10:31:58]line > о реализуемом товаре [10:31:58]line ИТОГО: 90.00 [10:31:58]line НСП 1% : 0.80 [10:31:58]line НДС 12% : 9.56 [10:31:58]line Наличными: 90.00 [10:31:58]line Безнал.: 0.00 [10:31:58]line Место: АЗС № 87 "Партнер Нефть" [10:31:58]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:31:58]line СНО: Общий режим [10:31:58]line Чек 60 27.10.2024 10:31 [10:31:58]line Смена: 532 ФФД: 1.0 [10:31:58]line ЗНМ: 0300000084 [10:31:58]line РНМ: 0000000000091622 [10:31:58]line Версия ККМ: 001 [10:31:58]line ФМ: 0000000000874674 [10:31:58]line ФД: 60528 [10:31:58]line ФПД: 4725594980954 [10:31:58]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103157&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60528&fm=4725594980954&tin=02508201610067®Number=0000000000091622&sum=9000 [10:31:58]line 0 [10:31:58]OFD Sender: Processing packet 60528 [packets to send 30, broken 29] [10:31:58]ProducePacketName [10:31:58]name=ofd_packets/00060528 [10:31:58]OFD Sender: To server: pG, [10:31:58]CommunicateWithHost lk.salyk.kg:30040 [10:31:58]ConnectInit lk.salyk.kg [10:31:58]written 0, free lines is 4095 [10:31:59]Connected sock=10 [10:31: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 36 37 34 2E 01 00 00 9E 17 26 01 E5 3D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 9D 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 70 EC 00 00 35 04 06 00 04 4C 43 69 02 5A 68 77 99 07 29 F3 59 3D [10:31:59]Write to MH i2c: 01 00 00 7C 09 85 [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: 01 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: 01 07 00 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: 01 07 00 7C 09 00 00 00 00 00 F8 0C 90 [10:31:59]RasterBufferAndPrint [10:31:59]line [10:31:59]line [10:31:59]line [10:31:59]line [10:31:59]line [10:31:59]written 0, free lines is 3327 [10:31:59]MH_Cut [10:31:59]Write to MH i2c: D1 01 00 83 09 01 5E [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: D1 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: D1 01 00 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: D1 01 00 83 09 00 5D [10:31:59]Write to MH i2c: 01 00 00 84 09 8D [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 91 55 47 00 9B 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 36 37 34 10 04 04 00 70 EC 00 00 F4 03 04 00 85 BC 1D 67 B6 04 01 00 00 4E 4D A1 80 94 BD 20 32 [10:31:59]CommunicateWithHost err = 0 [10:31:59]CheckOFDResponse [10:31:59]1017 (14) - 77093643461234 [10:31:59]1041 (16) - 0000000000874674 [10:31:59]1040 (4) - 60528 [10:31:59]1012 (4) - 27.10.2024 04:07 [10:31:59]1206 (1) - 0 [10:31:59]OFD Sender: Remove packet 60528 [10:31:59]ProducePacketName [10:31:59]name=ofd_packets/00060528 [10:31:59]NVStorageDeleteData [10:31:59]OFD Sender: No OFD packet to send [10:32:00]*** Cut start [10:32:00]*** Partial cut [10:32:00]*** CUTSNS_PIN = 1 [10:32:00]*** CUTSNS_PIN = 0 [10:32:00]*** Brake cut motor [10:32:00]Read from MH i2c: 01 [10:32:00]MH_I2C_Read... [10:32:00]*** Stop cut motor [10:32:00]*** Cut end [10:32:00]Read from MH i2c: 01 07 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 84 09 00 00 00 00 00 FF 0F A2 [10:32:00]process_action close_receipt done [10:32:00]requested_data is exist [10:32:00]produce_requested_data [10:32:00]requested_item fm.sn is exist - process it [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 11 00 00 [10:32:00]Write to MH i2c: E2 08 00 85 09 80 11 00 00 00 00 00 00 08 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 85 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5F [10:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:32:00]wFMCommunicate OK [10:32:00]requested_item fd.num is exist - process it [10:32:00]SAM_PROTO_GetFieldsCounters [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 00 00 [10:32:00]Write to MH i2c: E2 08 00 86 09 80 13 00 00 00 00 00 00 0B [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 62 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 62 00 86 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 70 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:32: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 70 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetFieldsCounters done [10:32:00]requested_item shift.num is exist - process it [10:32:00]requested_item shift.opened is exist - process it [10:32:00]req_shift_opened [10:32:00]FM_GetShiftState [10:32:00]SAM_PROTO_GetShiftState [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 01 00 [10:32:00]Write to MH i2c: E2 08 00 87 09 80 13 01 00 00 00 00 00 0D [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 87 09 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 A9 [10:32:00]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetShiftState done [10:32:00]FM_GetShiftState done [10:32:00]req_shift_opened done [10:32:00]requested_item shift.open_date is exist - process it [10:32:00]req_shift_open_date [10:32:00]req_shift_open_date done [10:32:00]produce_requested_data done [10:32:00]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60528,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:32:00]process_action_free close_receipt [10:32:00]json_value_free [10:32:00]json_value_free done [10:32:00]process_json_proto returns [10:32:00]Send response to host [10:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60528,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:32:00]free response buf [10:32:00]execute_script done [10:32:00]execute_script returns [10:32:00]free content buf [10:32:00]Sock 9.Close socket [10:32:00]Sock 9.Thread stoped [10:32:04]OFD Sender: No OFD packet to send [10:32:07]accept exits with 7 [10:32:07]New connection [10:32:07]New thread 3067362660 created [10:32:07]Thread 3067219300 joined [10:32:07]Waiting for new connection... [10:32:07] Sock 7.Parse request [10:32:07]Sock 7.Check first char [10:32:07]Sock 7.First char is OK [10:32:07]request: POST /json_proto HTTP/1.0 [10:32:07]Method: POST [10:32:07]URL: /json_proto [10:32:07]Method is POST - this is cgi request [10:32:07]url: /json_proto [10:32:07]query_string will be loaded in cgi processing [10:32:07]execute_cgi json_proto POST (null) [10:32:07]execute_cgi path=json_proto method=POST [10:32:07]POST find Content-Length [10:32:07]Host: 172.17.42.196:8080 [10:32:07]Content-Length: 767 [10:32:07]Content-Type: application/json [10:32:07] [10:32:07]POST finish read [10:32:07]Found Content-Length = 767 [10:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:07]execute_script... [10:32: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)3311563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:07]POST & json_proto [10:32:07]process_json_proto [10:32:07]json parsed OK: [10:32:07]protocol is kg_v1.0 [10:32:07]action value=close_receipt [10:32:07]process_action close_receipt [10:32:07]cmd_close_receipt [10:32:07]MH_GetDate [10:32:07]Write to MH i2c: F0 00 00 88 09 80 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: F0 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: F0 09 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: F0 09 00 88 09 00 A8 16 1E 67 FF C4 6B 64 5E [10:32:07]GetLastDocTimeStamp 1730025117 [10:32:07]current date 1730025128 [10:32:07]FM_GetShiftState [10:32:07]SAM_PROTO_GetShiftState [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 13 01 00 [10:32:07]Write to MH i2c: E2 08 00 89 09 80 13 01 00 00 00 00 00 0F [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 0E 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 0E 00 89 09 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 AB [10:32:07]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:32:07]wFMCommunicate OK [10:32:07]SAM_PROTO_GetShiftState done [10:32:07]FM_GetShiftState done [10:32:07]opened in 1729989505 [10:32:07]opened+sec_in_day 1730075905 [10:32:07]quantity*price = 50041 [10:32:07]sum+1 = 50042 [10:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 61 27.10.2024 10:32 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60529 ФПД: 827156348109 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103208&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60529&fm=827156348109&tin=02508201610067®Number=0000000000091622&sum=50041 [10:32:08]StoreToDocumentArchive [10:32:08]shift 532 fd 60529 [10:32:08]save to /storage/0532/doc_00060529 [10:32:08]save last doc name /storage/0532/doc_00060529 to /storage/kkm_last_doc_name [10:32:08]save OK [10:32:08]Clear old archive folders... [10:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:08]tlvbuf is 00226FE0 [10:32:08]SAM_PROTO_ClearQueue [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 09 00 00 [10:32:08]Write to MH i2c: E2 08 00 96 09 80 09 00 00 00 00 00 00 11 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 96 09 00 90 00 13 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]SAM_PROTO_ClearQueue done [10:32:08]KKMCreateOFDPacket [10:32:08]OFDProtocolAddRootSTLVToBuf [10:32:08]FM_MakeSignedData [10:32:08]FM_MakeSignedData [10:32:08]SAM_PROTO_SignData [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 0D 01 02 [10:32:08]Write to MH i2c: E2 08 00 97 09 80 0D 01 02 00 00 00 00 19 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 97 09 00 90 00 14 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=255 [10:32:08]MH_SAM_APDU [10:32: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A8 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EC 00 00 35 04 06 00 00 [10:32:08]Write to MH i2c: E2 02 01 98 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A8 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EC 00 00 35 04 06 00 00 00 00 EB [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 98 09 00 90 00 15 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=10 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 0D 02 02 05 C0 96 5C 3C CD [10:32:08]Write to MH i2c: E2 0D 00 99 09 80 0D 02 02 05 00 C0 96 5C 3C CD 00 00 E1 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [10:32:08]RAPDU: 90 00 [10:32:08]wFMCommunicate OK [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 0D 03 02 [10:32:08]Write to MH i2c: E2 08 00 9A 09 80 0D 03 02 00 00 00 00 1E [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:08]Read from MH i2c: E2 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0B 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: E2 0B 00 9A 09 00 B6 DD 33 7D 0A E4 2A 22 90 00 9C [10:32:08]RAPDU: B6 DD 33 7D 0A E4 2A 22 90 00 [10:32:08]wFMCommunicate OK [10:32:08]SAM_PROTO_SignData done [10:32:08]FM_MakeSignedData done [10:32:08]CreateOFDProtocolMessage [10:32:08]wFMCommunicate request_size=4 [10:32:08]MH_SAM_APDU [10:32:08]CAPDU: 80 11 00 00 [10:32:08]Write to MH i2c: E2 08 00 9B 09 80 11 00 00 00 00 00 00 1E [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 9B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 75 [10:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:32:09]wFMCommunicate OK [10:32:09]CreateOFDProtocolMessage done [10:32:09]OFDSenderStorePacket 60529 [10:32:09]StoreOFDPacket docnum=60529 [10:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 89 8B 07 01 36 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A8 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EC 00 00 35 04 06 00 00 C0 96 5C 3C CD B6 DD 33 7D 0A E4 2A 22 [10:32:09]CheckFolder [10:32:09]dirname=/storage/ofd_packets [10:32:09]CheckFolder done [10:32:09]ProducePacketName [10:32:09]name=ofd_packets/00060529 [10:32:09]NVStorageSaveData ofd_packets/00060529 [10:32:09]File name is /storage/ofd_packets/00060529 [10:32:09]Write 301 bytes [10:32:09]NVStorageSaveData done [10:32:09]OFDSenderStorePacket done [10:32:09]KKMCreateOFDPacket done [10:32:09]NVStorageSaveData kkm_last_timestamp [10:32:09]File name is /storage/kkm_last_timestamp [10:32:09]Write 4 bytes [10:32:09]NVStorageSaveData done [10:32:09]ExternCall_PrintAddStr [10:32:09]wPrintStart [10:32:09]Write to MH i2c: 01 00 00 9C 09 A5 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 9C 09 00 00 00 00 00 FF 0F BA [10:32:09]RasterBufferAndPrint [10:32:09]line Счет N : (1)3311563 [10:32:09]line ИНН: 02508201610067 [10:32:09]line Контрольно-Кассовый Чек [10:32:09]line ПРОДАЖА [10:32:09]line ТРК (МРК, ГНК) : 32 [10:32:09]line Товар: 2710124130 [10:32:09]line Аи-92-К-4 [10:32:09]line 7.480 * 66.90 [10:32:09]line = 500.41 [10:32:09]line НДС 12% НСП 1% [10:32:09]line > о реализуемом товаре [10:32:09]line ИТОГО: 500.41 [10:32:09]line НСП 1% : 4.43 [10:32:09]line НДС 12% : 53.14 [10:32:09]line Наличными: 0.00 [10:32:09]line Безнал.: 500.41 [10:32:09]line Место: АЗС № 87 "Партнер Нефть" [10:32:09]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:32:09]line СНО: Общий режим [10:32:09]line Чек 61 27.10.2024 10:32 [10:32:09]line Смена: 532 ФФД: 1.0 [10:32:09]line ЗНМ: 0300000084 [10:32:09]line РНМ: 0000000000091622 [10:32:09]line Версия ККМ: 001 [10:32:09]line Платежная система: Mbank [10:32:09]line ФМ: 0000000000874674 [10:32:09]line ФД: 60529 [10:32:09]line ФПД: 827156348109 [10:32:09]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103208&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60529&fm=827156348109&tin=02508201610067®Number=0000000000091622&sum=50041 [10:32:09]written 0, free lines is 4095 [10:32:09]OFD Sender: Processing packet 60529 [packets to send 30, broken 29] [10:32:09]ProducePacketName [10:32:09]name=ofd_packets/00060529 [10:32:09]OFD Sender: To server: pG, [10:32:09]CommunicateWithHost lk.salyk.kg:30040 [10:32:09]ConnectInit lk.salyk.kg [10:32:09]Connected sock=10 [10:32: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 36 37 34 0F 01 00 00 89 8B 07 01 36 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A8 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EC 00 00 35 04 06 00 00 C0 96 5C 3C CD B6 DD 33 7D 0A E4 2A 22 [10:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 A8 C9 47 00 C2 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 71 EC 00 00 F4 03 04 00 8F BC 1D 67 B6 04 01 00 00 C2 3A 24 04 AC B6 3A 4B [10:32:09]CommunicateWithHost err = 0 [10:32:09]CheckOFDResponse [10:32:09]1017 (14) - 77093643461234 [10:32:09]1041 (16) - 0000000000874674 [10:32:09]1040 (4) - 60529 [10:32:09]1012 (4) - 27.10.2024 04:07 [10:32:09]1206 (1) - 0 [10:32:09]OFD Sender: Remove packet 60529 [10:32:09]ProducePacketName [10:32:09]name=ofd_packets/00060529 [10:32:09]NVStorageDeleteData [10:32:09]Write to MH i2c: 01 00 00 C5 09 CE [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 06 0D E8 [10:32:09]RasterBufferAndPrint [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]line [10:32:09]written 0, free lines is 3343 [10:32:09]MH_Cut [10:32:09]Write to MH i2c: D1 01 00 CC 09 01 A7 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 01 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: D1 01 00 CC 09 00 A6 [10:32:09]Write to MH i2c: 01 00 00 CD 09 D6 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]OFD Sender: No OFD packet to send [10:32:10]*** Cut start [10:32:10]*** Partial cut [10:32:10]*** CUTSNS_PIN = 1 [10:32:10]*** CUTSNS_PIN = 0 [10:32:10]*** Brake cut motor [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]*** Stop cut motor [10:32:10]*** Cut end [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 CD 09 00 00 00 00 00 FF 0F EB [10:32:10]process_action close_receipt done [10:32:10]requested_data is exist [10:32:10]produce_requested_data [10:32:10]requested_item fm.sn is exist - process it [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 11 00 00 [10:32:10]Write to MH i2c: E2 08 00 CE 09 80 11 00 00 00 00 00 00 51 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 CE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 A8 [10:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:32:10]wFMCommunicate OK [10:32:10]requested_item fd.num is exist - process it [10:32:10]SAM_PROTO_GetFieldsCounters [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 00 00 [10:32:10]Write to MH i2c: E2 08 00 CF 09 80 13 00 00 00 00 00 00 54 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 62 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 62 00 CF 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 71 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [10:32: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 71 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_GetFieldsCounters done [10:32:11]requested_item shift.num is exist - process it [10:32:11]requested_item shift.opened is exist - process it [10:32:11]req_shift_opened [10:32:11]FM_GetShiftState [10:32:11]SAM_PROTO_GetShiftState [10:32:11]wFMCommunicate request_size=4 [10:32:11]MH_SAM_APDU [10:32:11]CAPDU: 80 13 01 00 [10:32:11]Write to MH i2c: E2 08 00 D0 09 80 13 01 00 00 00 00 00 56 [10:32:11]Write i2c OK [10:32:11]MH_I2C_Read... [10:32:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:11]Read from MH i2c: E2 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 [10:32:11]MH_I2C_Read... [10:32:11]Read from MH i2c: E2 0E 00 D0 09 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F2 [10:32:11]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:32:11]wFMCommunicate OK [10:32:11]SAM_PROTO_GetShiftState done [10:32:11]FM_GetShiftState done [10:32:11]req_shift_opened done [10:32:11]requested_item shift.open_date is exist - process it [10:32:11]req_shift_open_date [10:32:11]req_shift_open_date done [10:32:11]produce_requested_data done [10:32:11]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60529,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:32:11]process_action_free close_receipt [10:32:11]json_value_free [10:32:11]json_value_free done [10:32:11]process_json_proto returns [10:32:11]Send response to host [10:32:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60529,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:32:11]free response buf [10:32:11]execute_script done [10:32:11]execute_script returns [10:32:11]free content buf [10:32:11]Sock 7.Close socket [10:32:11]Sock 7.Thread stoped [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]accept exits with 9 [10:32:44]New connection [10:32:44]New thread 3067219300 created [10:32:44]Thread 3067362660 joined [10:32:44]Waiting for new connection... [10:32:44] Sock 9.Parse request [10:32:44]Sock 9.Check first char [10:32:44]Sock 9.First char is OK [10:32:44]request: POST /json_proto HTTP/1.0 [10:32:44]Method: POST [10:32:44]URL: /json_proto [10:32:44]Method is POST - this is cgi request [10:32:44]url: /json_proto [10:32:44]query_string will be loaded in cgi processing [10:32:44]execute_cgi json_proto POST (null) [10:32:44]execute_cgi path=json_proto method=POST [10:32:44]POST find Content-Length [10:32:44]Host: 172.17.42.196:8080 [10:32:44]Content-Length: 678 [10:32:44]Content-Type: application/json [10:32:44] [10:32:44]POST finish read [10:32:44]Found Content-Length = 678 [10:32:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:44]execute_script... [10:32:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:44]POST & json_proto [10:32:44]process_json_proto [10:32:44]json parsed OK: [10:32:44]protocol is kg_v1.0 [10:32:44]action value=close_receipt [10:32:44]process_action close_receipt [10:32:44]cmd_close_receipt [10:32:44]MH_GetDate [10:32:44]Write to MH i2c: F0 00 00 D1 09 C9 [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 09 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: F0 09 00 D1 09 00 CD 16 1E 67 FF C4 6B 64 CC [10:32:44]GetLastDocTimeStamp 1730025128 [10:32:44]current date 1730025165 [10:32:44]FM_GetShiftState [10:32:44]SAM_PROTO_GetShiftState [10:32:44]wFMCommunicate request_size=4 [10:32:44]MH_SAM_APDU [10:32:44]CAPDU: 80 13 01 00 [10:32:44]Write to MH i2c: E2 08 00 D2 09 80 13 01 00 00 00 00 00 58 [10:32:44]Write i2c OK [10:32:44]MH_I2C_Read... [10:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:44]Read from MH i2c: E2 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 [10:32:44]MH_I2C_Read... [10:32:44]Read from MH i2c: E2 0E 00 D2 09 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F4 [10:32:44]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:32:44]wFMCommunicate OK [10:32:44]SAM_PROTO_GetShiftState done [10:32:44]FM_GetShiftState done [10:32:44]opened in 1729989505 [10:32:44]opened+sec_in_day 1730075905 [10:32:44]quantity*price = 60009 [10:32:44]sum+1 = 60010 [10:32:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 62 27.10.2024 10:32 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60530 ФПД: 119575512047960 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103245&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60530&fm=119575512047960&tin=02508201610067®Number=0000000000091622&sum=60000 [10:32:45]StoreToDocumentArchive [10:32:45]shift 532 fd 60530 [10:32:45]save to /storage/0532/doc_00060530 [10:32:45]save last doc name /storage/0532/doc_00060530 to /storage/kkm_last_doc_name [10:32:45]save OK [10:32:45]Clear old archive folders... [10:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:45]tlvbuf is 001ABCA0 [10:32:45]SAM_PROTO_ClearQueue [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 09 00 00 [10:32:45]Write to MH i2c: E2 08 00 DF 09 80 09 00 00 00 00 00 00 5A [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 DF 09 00 90 00 5C [10:32:45]RAPDU: 90 00 [10:32:45]wFMCommunicate OK [10:32:45]SAM_PROTO_ClearQueue done [10:32:45]KKMCreateOFDPacket [10:32:45]OFDProtocolAddRootSTLVToBuf [10:32:45]FM_MakeSignedData [10:32:45]FM_MakeSignedData [10:32:45]SAM_PROTO_SignData [10:32:45]wFMCommunicate request_size=4 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 0D 01 02 [10:32:45]Write to MH i2c: E2 08 00 E0 09 80 0D 01 02 00 00 00 00 62 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:45]Read from MH i2c: E2 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: E2 03 00 E0 09 00 90 00 5D [10:32:45]RAPDU: 90 00 [10:32:45]wFMCommunicate OK [10:32:45]wFMCommunicate request_size=255 [10:32:45]MH_SAM_APDU [10:32:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EC 00 00 35 04 06 00 6C [10:32:45]Write to MH i2c: E2 02 01 E1 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EC 00 00 35 04 06 00 6C 00 00 52 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 E1 09 00 90 00 5E [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=10 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 02 02 05 C0 D7 EB 61 58 [10:32:46]Write to MH i2c: E2 0D 00 E2 09 80 0D 02 02 05 00 C0 D7 EB 61 58 00 00 AA [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 03 00 E2 09 00 90 00 5F [10:32:46]RAPDU: 90 00 [10:32:46]wFMCommunicate OK [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 0D 03 02 [10:32:46]Write to MH i2c: E2 08 00 E3 09 80 0D 03 02 00 00 00 00 67 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 0B 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 0B 00 E3 09 00 9D 19 11 76 EE 40 58 93 90 00 BE [10:32:46]RAPDU: 9D 19 11 76 EE 40 58 93 90 00 [10:32:46]wFMCommunicate OK [10:32:46]SAM_PROTO_SignData done [10:32:46]FM_MakeSignedData done [10:32:46]CreateOFDProtocolMessage [10:32:46]wFMCommunicate request_size=4 [10:32:46]MH_SAM_APDU [10:32:46]CAPDU: 80 11 00 00 [10:32:46]Write to MH i2c: E2 08 00 E4 09 80 11 00 00 00 00 00 00 67 [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:46]Read from MH i2c: E2 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 17 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: E2 17 00 E4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 BE [10:32:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:32:46]wFMCommunicate OK [10:32:46]CreateOFDProtocolMessage done [10:32:46]OFDSenderStorePacket 60530 [10:32:46]StoreOFDPacket docnum=60530 [10:32:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 61 9C 07 01 35 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EC 00 00 35 04 06 00 6C C0 D7 EB 61 58 9D 19 11 76 EE 40 58 93 [10:32:46]CheckFolder [10:32:46]dirname=/storage/ofd_packets [10:32:46]CheckFolder done [10:32:46]ProducePacketName [10:32:46]name=ofd_packets/00060530 [10:32:46]NVStorageSaveData ofd_packets/00060530 [10:32:46]File name is /storage/ofd_packets/00060530 [10:32:46]Write 301 bytes [10:32:46]NVStorageSaveData done [10:32:46]OFDSenderStorePacket done [10:32:46]KKMCreateOFDPacket done [10:32:46]NVStorageSaveData kkm_last_timestamp [10:32:46]File name is /storage/kkm_last_timestamp [10:32:46]Write 4 bytes [10:32:46]NVStorageSaveData done [10:32:46]ExternCall_PrintAddStr [10:32:46]wPrintStart [10:32:46]Write to MH i2c: 01 00 00 E5 09 EE [10:32:46]Write i2c OK [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 07 00 [10:32:46]MH_I2C_Read... [10:32:46]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 FF 0F 03 [10:32:46]RasterBufferAndPrint [10:32:46]line Счет N : (1)3311565 [10:32:46]line ИНН: 02508201610067 [10:32:46]line Контрольно-Кассовый Чек [10:32:46]line ПРОДАЖА [10:32:46]line ТРК (МРК, ГНК) : 12 [10:32:46]line Товар: 2710124130 [10:32:46]line Аи-92-К-4 [10:32:46]line 8.970 * 66.90 [10:32:46]line = 600.09 [10:32:46]line НДС 12% НСП 1% [10:32:46]line > о реализуемом товаре [10:32:46]line ОКРУГЛЕНИЕ: -0.09 [10:32:46]line ИТОГО: 600.00 [10:32:46]line Внесено: 600.00 [10:32:46]line СДАЧА: 0.00 [10:32:46]line НСП 1% : 5.31 [10:32:46]line НДС 12% : 63.73 [10:32:46]line Наличными: 600.00 [10:32:46]line Безнал.: 0.00 [10:32:46]line Место: АЗС № 87 "Партнер Нефть" [10:32:46]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:32:46]line СНО: Общий режим [10:32:46]line Чек 62 27.10.2024 10:32 [10:32:46]line Смена: 532 ФФД: 1.0 [10:32:46]line ЗНМ: 0300000084 [10:32:46]line РНМ: 0000000000091622 [10:32:46]line Версия ККМ: 001 [10:32:46]line ФМ: 0000000000874674 [10:32:46]line ФД: 60530 [10:32:46]line ФПД: 119575512047960 [10:32:46]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103245&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60530&fm=119575512047960&tin=02508201610067®Number=0000000000091622&sum=60000 [10:32:46]written 0, free lines is 4095 [10:32:46]OFD Sender: Processing packet 60530 [packets to send 30, broken 29] [10:32:46]ProducePacketName [10:32:46]name=ofd_packets/00060530 [10:32:46]OFD Sender: To server: pG, [10:32:46]CommunicateWithHost lk.salyk.kg:30040 [10:32:46]ConnectInit lk.salyk.kg [10:32:46]Connected sock=10 [10:32: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 36 37 34 0F 01 00 00 61 9C 07 01 35 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 CD 16 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 72 EC 00 00 35 04 06 00 6C C0 D7 EB 61 58 9D 19 11 76 EE 40 58 93 [10:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 53 38 47 00 94 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 36 37 34 10 04 04 00 72 EC 00 00 F4 03 04 00 B5 BC 1D 67 B6 04 01 00 00 14 64 AB 2B 6C 73 8E 25 [10:32:47]CommunicateWithHost err = 0 [10:32:47]CheckOFDResponse [10:32:47]1017 (14) - 77093643461234 [10:32:47]1041 (16) - 0000000000874674 [10:32:47]1040 (4) - 60530 [10:32:47]1012 (4) - 27.10.2024 04:08 [10:32:47]1206 (1) - 0 [10:32:47]OFD Sender: Remove packet 60530 [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00060530 [10:32:47]NVStorageDeleteData [10:32:47]Write to MH i2c: 01 00 00 10 0A 1A [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: 01 07 00 10 0A 00 00 00 00 00 E4 0C 11 [10:32:47]RasterBufferAndPrint [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]line [10:32:47]written 0, free lines is 3306 [10:32:47]MH_Cut [10:32:47]Write to MH i2c: D1 01 00 17 0A 01 F3 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 01 00 [10:32:47]MH_I2C_Read... [10:32:47]Read from MH i2c: D1 01 00 17 0A 00 F2 [10:32:47]Write to MH i2c: 01 00 00 18 0A 22 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]OFD Sender: No OFD packet to send [10:32:47]*** Cut start [10:32:47]*** Partial cut [10:32:47]*** CUTSNS_PIN = 1 [10:32:48]*** CUTSNS_PIN = 0 [10:32:48]*** Brake cut motor [10:32:48]Read from MH i2c: 01 [10:32:48]MH_I2C_Read... [10:32:48]*** Stop cut motor [10:32:48]*** Cut end [10:32:48]Read from MH i2c: 01 07 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: 01 07 00 18 0A 00 00 00 00 00 FF 0F 37 [10:32:48]process_action close_receipt done [10:32:48]requested_data is exist [10:32:48]produce_requested_data [10:32:48]requested_item fm.sn is exist - process it [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 11 00 00 [10:32:48]Write to MH i2c: E2 08 00 19 0A 80 11 00 00 00 00 00 00 9D [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 19 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F4 [10:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:32:48]wFMCommunicate OK [10:32:48]requested_item fd.num is exist - process it [10:32:48]SAM_PROTO_GetFieldsCounters [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 00 00 [10:32:48]Write to MH i2c: E2 08 00 1A 0A 80 13 00 00 00 00 00 00 A0 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 1A 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 72 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:32: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 72 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:48]wFMCommunicate OK [10:32:48]SAM_PROTO_GetFieldsCounters done [10:32:48]requested_item shift.num is exist - process it [10:32:48]requested_item shift.opened is exist - process it [10:32:48]req_shift_opened [10:32:48]FM_GetShiftState [10:32:48]SAM_PROTO_GetShiftState [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 01 00 [10:32:48]Write to MH i2c: E2 08 00 1B 0A 80 13 01 00 00 00 00 00 A2 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 0E 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 0E 00 1B 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 3E [10:32:48]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:32:48]wFMCommunicate OK [10:32:48]SAM_PROTO_GetShiftState done [10:32:48]FM_GetShiftState done [10:32:48]req_shift_opened done [10:32:48]requested_item shift.open_date is exist - process it [10:32:48]req_shift_open_date [10:32:48]req_shift_open_date done [10:32:48]produce_requested_data done [10:32:48]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60530,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:32:48]process_action_free close_receipt [10:32:48]json_value_free [10:32:48]json_value_free done [10:32:48]process_json_proto returns [10:32:48]Send response to host [10:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60530,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:32:48]free response buf [10:32:48]execute_script done [10:32:48]execute_script returns [10:32:48]free content buf [10:32:48]Sock 9.Close socket [10:32:48]Sock 9.Thread stoped [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:40]accept exits with 7 [10:34:40]New connection [10:34:40]New thread 3067362660 created [10:34:40]Thread 3067219300 joined [10:34:40]Waiting for new connection... [10:34:40] Sock 7.Parse request [10:34:40]Sock 7.Check first char [10:34:40]Sock 7.First char is OK [10:34:40]request: POST /json_proto HTTP/1.0 [10:34:40]Method: POST [10:34:40]URL: /json_proto [10:34:40]Method is POST - this is cgi request [10:34:40]url: /json_proto [10:34:40]query_string will be loaded in cgi processing [10:34:40]execute_cgi json_proto POST (null) [10:34:40]execute_cgi path=json_proto method=POST [10:34:40]POST find Content-Length [10:34:40]Host: 172.17.42.196:8080 [10:34:40]Content-Length: 619 [10:34:40]Content-Type: application/json [10:34:40] [10:34:40]POST finish read [10:34:40]Found Content-Length = 619 [10:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200159", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:40]execute_script... [10:34:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200159", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:40]POST & json_proto [10:34:40]process_json_proto [10:34:40]json parsed OK: [10:34:40]protocol is kg_v1.0 [10:34:40]action value=close_receipt [10:34:40]process_action close_receipt [10:34:40]cmd_close_receipt [10:34:40]MH_GetDate [10:34:40]Write to MH i2c: F0 00 00 1C 0A 15 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: F0 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: F0 09 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: F0 09 00 1C 0A 00 41 17 1E 67 FF C4 6B 64 8D [10:34:40]GetLastDocTimeStamp 1730025165 [10:34:40]current date 1730025281 [10:34:40]FM_GetShiftState [10:34:40]SAM_PROTO_GetShiftState [10:34:40]wFMCommunicate request_size=4 [10:34:40]MH_SAM_APDU [10:34:40]CAPDU: 80 13 01 00 [10:34:40]Write to MH i2c: E2 08 00 1D 0A 80 13 01 00 00 00 00 00 A4 [10:34:40]Write i2c OK [10:34:40]MH_I2C_Read... [10:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:40]Read from MH i2c: E2 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0E 00 [10:34:40]MH_I2C_Read... [10:34:40]Read from MH i2c: E2 0E 00 1D 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 40 [10:34:40]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:34:40]wFMCommunicate OK [10:34:40]SAM_PROTO_GetShiftState done [10:34:40]FM_GetShiftState done [10:34:40]opened in 1729989505 [10:34:40]opened+sec_in_day 1730075905 [10:34:40]quantity*price = 14400 [10:34:40]sum+1 = 14401 [10:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 63 27.10.2024 10:34 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60531 ФПД: 100032919354258 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103441&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60531&fm=100032919354258&tin=02508201610067®Number=0000000000091622&sum=14400 0 [10:34:42]StoreToDocumentArchive [10:34:42]shift 532 fd 60531 [10:34:42]save to /storage/0532/doc_00060531 [10:34:42]save last doc name /storage/0532/doc_00060531 to /storage/kkm_last_doc_name [10:34:42]save OK [10:34:42]Clear old archive folders... [10:34:42]ProcessDocumentItem done err = 0, tmpTLVsize=271 [10:34:42]tlvbuf is 001F47F0 [10:34:42]SAM_PROTO_ClearQueue [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 09 00 00 [10:34:42]Write to MH i2c: E2 08 00 2A 0A 80 09 00 00 00 00 00 00 A6 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 2A 0A 00 90 00 A8 [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]SAM_PROTO_ClearQueue done [10:34:42]KKMCreateOFDPacket [10:34:42]OFDProtocolAddRootSTLVToBuf [10:34:42]FM_MakeSignedData [10:34:42]FM_MakeSignedData [10:34:42]SAM_PROTO_SignData [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 01 02 [10:34:42]Write to MH i2c: E2 08 00 2B 0A 80 0D 01 02 00 00 00 00 AE [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]wFMCommunicate request_size=255 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3F 00 00 00 F4 03 04 00 41 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [10:34:42]Write to MH i2c: E2 02 01 2C 0A 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3F 00 00 00 F4 03 04 00 41 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D4 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]wFMCommunicate request_size=30 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 34 10 04 04 00 73 EC 00 00 35 04 06 00 5A FA BA 9F BB 92 [10:34:42]Write to MH i2c: E2 21 00 2D 0A 80 0D 02 02 19 00 30 38 37 34 36 37 34 10 04 04 00 73 EC 00 00 35 04 06 00 5A FA BA 9F BB 92 00 00 07 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [10:34:42]RAPDU: 90 00 [10:34:42]wFMCommunicate OK [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 0D 03 02 [10:34:42]Write to MH i2c: E2 08 00 2E 0A 80 0D 03 02 00 00 00 00 B3 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 0B 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 0B 00 2E 0A 00 62 D1 17 78 6E 03 B4 44 90 00 DF [10:34:42]RAPDU: 62 D1 17 78 6E 03 B4 44 90 00 [10:34:42]wFMCommunicate OK [10:34:42]SAM_PROTO_SignData done [10:34:42]FM_MakeSignedData done [10:34:42]CreateOFDProtocolMessage [10:34:42]wFMCommunicate request_size=4 [10:34:42]MH_SAM_APDU [10:34:42]CAPDU: 80 11 00 00 [10:34:42]Write to MH i2c: E2 08 00 2F 0A 80 11 00 00 00 00 00 00 B3 [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:42]Read from MH i2c: E2 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 17 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: E2 17 00 2F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0A [10:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:34:42]wFMCommunicate OK [10:34:42]CreateOFDProtocolMessage done [10:34:42]OFDSenderStorePacket 60531 [10:34:42]StoreOFDPacket docnum=60531 [10:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 C2 F8 1B 01 3D 0D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3F 00 00 00 F4 03 04 00 41 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 73 EC 00 00 35 04 06 00 5A FA BA 9F BB 92 62 D1 17 78 6E 03 B4 44 [10:34:42]CheckFolder [10:34:42]dirname=/storage/ofd_packets [10:34:42]CheckFolder done [10:34:42]ProducePacketName [10:34:42]name=ofd_packets/00060531 [10:34:42]NVStorageSaveData ofd_packets/00060531 [10:34:42]File name is /storage/ofd_packets/00060531 [10:34:42]Write 321 bytes [10:34:42]NVStorageSaveData done [10:34:42]OFDSenderStorePacket done [10:34:42]KKMCreateOFDPacket done [10:34:42]NVStorageSaveData kkm_last_timestamp [10:34:42]File name is /storage/kkm_last_timestamp [10:34:42]Write 4 bytes [10:34:42]NVStorageSaveData done [10:34:42]ExternCall_PrintAddStr [10:34:42]wPrintStart [10:34:42]Write to MH i2c: 01 00 00 30 0A 3A [10:34:42]Write i2c OK [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 [10:34:42]MH_I2C_Read... [10:34:42]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 FF 0F 4F [10:34:42]RasterBufferAndPrint [10:34:42]line Счет N : (3)200159 [10:34:42]line ИНН: 02508201610067 [10:34:42]line Контрольно-Кассовый Чек [10:34:42]line ПРОДАЖА [10:34:42]line Товар: 47802995 [10:34:42]line Сигареты Winston XS Silver [10:34:42]line 1.000 * 144.00 [10:34:42]line = 144.00 [10:34:42]line НДС 12% НСП 1% [10:34:42]line > о реализуемом товаре [10:34:42]line ИТОГО: 144.00 [10:34:42]line НСП 1% : 1.27 [10:34:42]line НДС 12% : 15.29 [10:34:42]line Наличными: 144.00 [10:34:42]line Безнал.: 0.00 [10:34:42]line Место: АЗС № 87 "Партнер Нефть" [10:34:42]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:34:42]line СНО: Общий режим [10:34:42]line Чек 63 27.10.2024 10:34 [10:34:42]line Смена: 532 ФФД: 1.0 [10:34:42]line ЗНМ: 0300000084 [10:34:42]line РНМ: 0000000000091622 [10:34:42]line Версия ККМ: 001 [10:34:42]line ФМ: 0000000000874674 [10:34:42]line ФД: 60531 [10:34:42]line ФПД: 100032919354258 [10:34:42]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103441&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60531&fm=100032919354258&tin=02508201610067®Number=0000000000091622&sum=14400 [10:34:42]OFD Sender: Processing packet 60531 [packets to send 30, broken 29] [10:34:42]ProducePacketName [10:34:42]name=ofd_packets/00060531 [10:34:42]OFD Sender: To server: pG, [10:34:42]CommunicateWithHost lk.salyk.kg:30040 [10:34:42]ConnectInit lk.salyk.kg [10:34:42]line 0 [10:34:42]written 0, free lines is 4095 [10:34:43]Connected sock=10 [10:34: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 36 37 34 23 01 00 00 C2 F8 1B 01 3D 0D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 3F 00 00 00 F4 03 04 00 41 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 73 EC 00 00 35 04 06 00 5A FA BA 9F BB 92 62 D1 17 78 6E 03 B4 44 [10:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 51 3A 47 00 F4 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 36 37 34 10 04 04 00 73 EC 00 00 F4 03 04 00 29 BD 1D 67 B6 04 01 00 00 3F F0 B7 F5 AE F9 D6 6F [10:34:43]CommunicateWithHost err = 0 [10:34:43]CheckOFDResponse [10:34:43]1017 (14) - 77093643461234 [10:34:43]1041 (16) - 0000000000874674 [10:34:43]1040 (4) - 60531 [10:34:43]1012 (4) - 27.10.2024 04:10 [10:34:43]1206 (1) - 0 [10:34:43]OFD Sender: Remove packet 60531 [10:34:43]ProducePacketName [10:34:43]name=ofd_packets/00060531 [10:34:43]NVStorageDeleteData [10:34:43]Write to MH i2c: 01 00 00 58 0A 62 [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: 01 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: 01 07 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: 01 07 00 58 0A 00 00 00 00 00 FD 0C 72 [10:34:43]RasterBufferAndPrint [10:34:43]line [10:34:43]line [10:34:43]line [10:34:43]line [10:34:43]line [10:34:43]written 0, free lines is 3331 [10:34:43]MH_Cut [10:34:43]Write to MH i2c: D1 01 00 5F 0A 01 3B [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: D1 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: D1 01 00 [10:34:43]MH_I2C_Read... [10:34:43]Read from MH i2c: D1 01 00 5F 0A 00 3A [10:34:43]Write to MH i2c: 01 00 00 60 0A 6A [10:34:43]Write i2c OK [10:34:43]MH_I2C_Read... [10:34:43]OFD Sender: No OFD packet to send [10:34:44]*** Cut start [10:34:44]*** Partial cut [10:34:44]*** CUTSNS_PIN = 1 [10:34:44]*** CUTSNS_PIN = 0 [10:34:44]*** Brake cut motor [10:34:44]Read from MH i2c: 01 [10:34:44]MH_I2C_Read... [10:34:44]*** Stop cut motor [10:34:44]*** Cut end [10:34:44]Read from MH i2c: 01 07 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: 01 07 00 60 0A 00 00 00 00 00 FF 0F 7F [10:34:44]process_action close_receipt done [10:34:44]requested_data is exist [10:34:44]produce_requested_data [10:34:44]requested_item fm.sn is exist - process it [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 11 00 00 [10:34:44]Write to MH i2c: E2 08 00 61 0A 80 11 00 00 00 00 00 00 E5 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:44]Read from MH i2c: E2 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 17 00 [10:34:44]MH_I2C_Read... [10:34:44]Read from MH i2c: E2 17 00 61 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 3C [10:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:34:44]wFMCommunicate OK [10:34:44]requested_item fd.num is exist - process it [10:34:44]SAM_PROTO_GetFieldsCounters [10:34:44]wFMCommunicate request_size=4 [10:34:44]MH_SAM_APDU [10:34:44]CAPDU: 80 13 00 00 [10:34:44]Write to MH i2c: E2 08 00 62 0A 80 13 00 00 00 00 00 00 E8 [10:34:44]Write i2c OK [10:34:44]MH_I2C_Read... [10:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 62 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 62 00 62 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 73 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [10:34: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 73 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_GetFieldsCounters done [10:34:45]requested_item shift.num is exist - process it [10:34:45]requested_item shift.opened is exist - process it [10:34:45]req_shift_opened [10:34:45]FM_GetShiftState [10:34:45]SAM_PROTO_GetShiftState [10:34:45]wFMCommunicate request_size=4 [10:34:45]MH_SAM_APDU [10:34:45]CAPDU: 80 13 01 00 [10:34:45]Write to MH i2c: E2 08 00 63 0A 80 13 01 00 00 00 00 00 EA [10:34:45]Write i2c OK [10:34:45]MH_I2C_Read... [10:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:45]Read from MH i2c: E2 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0E 00 [10:34:45]MH_I2C_Read... [10:34:45]Read from MH i2c: E2 0E 00 63 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 86 [10:34:45]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:34:45]wFMCommunicate OK [10:34:45]SAM_PROTO_GetShiftState done [10:34:45]FM_GetShiftState done [10:34:45]req_shift_opened done [10:34:45]requested_item shift.open_date is exist - process it [10:34:45]req_shift_open_date [10:34:45]req_shift_open_date done [10:34:45]produce_requested_data done [10:34:45]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60531,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:34:45]process_action_free close_receipt [10:34:45]json_value_free [10:34:45]json_value_free done [10:34:45]process_json_proto returns [10:34:45]Send response to host [10:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60531,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:34:45]free response buf [10:34:45]execute_script done [10:34:45]execute_script returns [10:34:45]free content buf [10:34:45]Sock 7.Close socket [10:34:45]Sock 7.Thread stoped [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]accept exits with 9 [10:35:08]New connection [10:35:08]New thread 3067219300 created [10:35:08]Thread 3067362660 joined [10:35:08]Waiting for new connection... [10:35:08] Sock 9.Parse request [10:35:08]Sock 9.Check first char [10:35:08]Sock 9.First char is OK [10:35:08]request: POST /json_proto HTTP/1.0 [10:35:08]Method: POST [10:35:08]URL: /json_proto [10:35:08]Method is POST - this is cgi request [10:35:08]url: /json_proto [10:35:08]query_string will be loaded in cgi processing [10:35:08]execute_cgi json_proto POST (null) [10:35:08]execute_cgi path=json_proto method=POST [10:35:08]POST find Content-Length [10:35:08]Host: 172.17.42.196:8080 [10:35:08]Content-Length: 770 [10:35:08]Content-Type: application/json [10:35:08] [10:35:08]POST finish read [10:35:08]Found Content-Length = 770 [10:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.360, "sum" : 2499.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2499.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:08]execute_script... [10:35: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)3311569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.360, "sum" : 2499.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2499.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:08]POST & json_proto [10:35:08]process_json_proto [10:35:08]json parsed OK: [10:35:08]protocol is kg_v1.0 [10:35:08]action value=close_receipt [10:35:08]process_action close_receipt [10:35:08]cmd_close_receipt [10:35:08]MH_GetDate [10:35:08]Write to MH i2c: F0 00 00 64 0A 5D [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: F0 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: F0 09 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: F0 09 00 64 0A 00 5D 17 1E 67 FF C4 6B 64 F1 [10:35:08]GetLastDocTimeStamp 1730025281 [10:35:08]current date 1730025309 [10:35:08]FM_GetShiftState [10:35:08]SAM_PROTO_GetShiftState [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 13 01 00 [10:35:08]Write to MH i2c: E2 08 00 65 0A 80 13 01 00 00 00 00 00 EC [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0E 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0E 00 65 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 88 [10:35:08]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:35:08]wFMCommunicate OK [10:35:08]SAM_PROTO_GetShiftState done [10:35:08]FM_GetShiftState done [10:35:08]opened in 1729989505 [10:35:08]opened+sec_in_day 1730075905 [10:35:08]quantity*price = 249938 [10:35:08]sum+1 = 249939 [10:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2499.38 НСП 1% : 22.12 НДС 12% : 265.42 Наличными: 0.00 Безнал.: 2499.38 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 64 27.10.2024 10:35 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60532 ФПД: 129534812733696 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103509&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60532&fm=129534812733696&tin=02508201610067®Number=0000000000091622&sum=249938 [10:35:09]StoreToDocumentArchive [10:35:09]shift 532 fd 60532 [10:35:09]save to /storage/0532/doc_00060532 [10:35:09]save last doc name /storage/0532/doc_00060532 to /storage/kkm_last_doc_name [10:35:09]save OK [10:35:09]Clear old archive folders... [10:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:09]tlvbuf is 001C4C60 [10:35:09]SAM_PROTO_ClearQueue [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 09 00 00 [10:35:09]Write to MH i2c: E2 08 00 72 0A 80 09 00 00 00 00 00 00 EE [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 72 0A 00 90 00 F0 [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]SAM_PROTO_ClearQueue done [10:35:09]KKMCreateOFDPacket [10:35:09]OFDProtocolAddRootSTLVToBuf [10:35:09]FM_MakeSignedData [10:35:09]FM_MakeSignedData [10:35:09]SAM_PROTO_SignData [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 01 02 [10:35:09]Write to MH i2c: E2 08 00 73 0A 80 0D 01 02 00 00 00 00 F6 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 73 0A 00 90 00 F1 [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]wFMCommunicate request_size=255 [10:35:09]MH_SAM_APDU [10:35: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 34 FF 03 08 00 03 F0 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 52 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 74 EC 00 00 35 04 06 00 75 [10:35:09]Write to MH i2c: E2 02 01 74 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 34 FF 03 08 00 03 F0 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 52 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 74 EC 00 00 35 04 06 00 75 00 00 0F [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:10]Read from MH i2c: E2 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 03 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [10:35:10]RAPDU: 90 00 [10:35:10]wFMCommunicate OK [10:35:10]wFMCommunicate request_size=10 [10:35:10]MH_SAM_APDU [10:35:10]CAPDU: 80 0D 02 02 05 CF AC 7F C1 00 [10:35:10]Write to MH i2c: E2 0D 00 75 0A 80 0D 02 02 05 00 CF AC 7F C1 00 00 00 BE [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:10]Read from MH i2c: E2 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 03 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [10:35:10]RAPDU: 90 00 [10:35:10]wFMCommunicate OK [10:35:10]wFMCommunicate request_size=4 [10:35:10]MH_SAM_APDU [10:35:10]CAPDU: 80 0D 03 02 [10:35:10]Write to MH i2c: E2 08 00 76 0A 80 0D 03 02 00 00 00 00 FB [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:10]Read from MH i2c: E2 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 0B 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 0B 00 76 0A 00 AA 08 A5 E2 8E D6 D3 7E 90 00 EA [10:35:10]RAPDU: AA 08 A5 E2 8E D6 D3 7E 90 00 [10:35:10]wFMCommunicate OK [10:35:10]SAM_PROTO_SignData done [10:35:10]FM_MakeSignedData done [10:35:10]CreateOFDProtocolMessage [10:35:10]wFMCommunicate request_size=4 [10:35:10]MH_SAM_APDU [10:35:10]CAPDU: 80 11 00 00 [10:35:10]Write to MH i2c: E2 08 00 77 0A 80 11 00 00 00 00 00 00 FB [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:10]Read from MH i2c: E2 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 17 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: E2 17 00 77 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 52 [10:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:35:10]wFMCommunicate OK [10:35:10]CreateOFDProtocolMessage done [10:35:10]OFDSenderStorePacket 60532 [10:35:10]StoreOFDPacket docnum=60532 [10:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 3B 82 07 01 CF 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 34 FF 03 08 00 03 F0 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 52 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 74 EC 00 00 35 04 06 00 75 CF AC 7F C1 00 AA 08 A5 E2 8E D6 D3 7E [10:35:10]CheckFolder [10:35:10]dirname=/storage/ofd_packets [10:35:10]CheckFolder done [10:35:10]ProducePacketName [10:35:10]name=ofd_packets/00060532 [10:35:10]NVStorageSaveData ofd_packets/00060532 [10:35:10]File name is /storage/ofd_packets/00060532 [10:35:10]Write 301 bytes [10:35:10]NVStorageSaveData done [10:35:10]OFDSenderStorePacket done [10:35:10]KKMCreateOFDPacket done [10:35:10]NVStorageSaveData kkm_last_timestamp [10:35:10]File name is /storage/kkm_last_timestamp [10:35:10]Write 4 bytes [10:35:10]NVStorageSaveData done [10:35:10]ExternCall_PrintAddStr [10:35:10]wPrintStart [10:35:10]Write to MH i2c: 01 00 00 78 0A 82 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 78 0A 00 00 00 00 00 FF 0F 97 [10:35:10]RasterBufferAndPrint [10:35:10]line Счет N : (1)3311569 [10:35:10]line ИНН: 02508201610067 [10:35:10]line Контрольно-Кассовый Чек [10:35:10]line ПРОДАЖА [10:35:10]line ТРК (МРК, ГНК) : 32 [10:35:10]line Товар: 2710124130 [10:35:10]line Аи-92-К-4 [10:35:10]line 37.360 * 66.90 [10:35:10]line = 2499.38 [10:35:10]line НДС 12% НСП 1% [10:35:10]line > о реализуемом товаре [10:35:10]line ИТОГО: 2499.38 [10:35:10]line НСП 1% : 22.12 [10:35:10]line НДС 12% : 265.42 [10:35:10]line Наличными: 0.00 [10:35:10]line Безнал.: 2499.38 [10:35:10]line Место: АЗС № 87 "Партнер Нефть" [10:35:10]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:35:10]line СНО: Общий режим [10:35:10]line Чек 64 27.10.2024 10:35 [10:35:10]line Смена: 532 ФФД: 1.0 [10:35:10]line ЗНМ: 0300000084 [10:35:10]line РНМ: 0000000000091622 [10:35:10]line Версия ККМ: 001 [10:35:10]line Платежная система: Mbank [10:35:10]line ФМ: 0000000000874674 [10:35:10]line ФД: 60532 [10:35:10]line ФПД: 129534812733696 [10:35:10]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103509&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60532&fm=129534812733696&tin=02508201610067®Number=0000000000091622&sum=249938 [10:35:10]OFD Sender: Processing packet 60532 [packets to send 30, broken 29] [10:35:10]ProducePacketName [10:35:10]name=ofd_packets/00060532 [10:35:10]OFD Sender: To server: pG, [10:35:10]CommunicateWithHost lk.salyk.kg:30040 [10:35:10]ConnectInit lk.salyk.kg [10:35:10]written 0, free lines is 4095 [10:35:10]Connected sock=10 [10:35: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 36 37 34 0F 01 00 00 3B 82 07 01 CF 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 34 FF 03 08 00 03 F0 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 52 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5D 17 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 74 EC 00 00 35 04 06 00 75 CF AC 7F C1 00 AA 08 A5 E2 8E D6 D3 7E [10:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 F5 B5 47 00 17 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 36 37 34 10 04 04 00 74 EC 00 00 F4 03 04 00 45 BD 1D 67 B6 04 01 00 00 13 B7 0B 6D 55 97 70 AC [10:35:10]CommunicateWithHost err = 0 [10:35:10]CheckOFDResponse [10:35:10]1017 (14) - 77093643461234 [10:35:10]1041 (16) - 0000000000874674 [10:35:10]1040 (4) - 60532 [10:35:10]1012 (4) - 27.10.2024 04:10 [10:35:10]1206 (1) - 0 [10:35:10]OFD Sender: Remove packet 60532 [10:35:10]ProducePacketName [10:35:10]name=ofd_packets/00060532 [10:35:10]NVStorageDeleteData [10:35:11]Write to MH i2c: 01 00 00 A1 0A AB [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: 01 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: 01 07 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: 01 07 00 A1 0A 00 00 00 00 00 20 0D DF [10:35:11]RasterBufferAndPrint [10:35:11]line [10:35:11]line [10:35:11]line [10:35:11]line [10:35:11]line [10:35:11]written 0, free lines is 3369 [10:35:11]MH_Cut [10:35:11]Write to MH i2c: D1 01 00 A8 0A 01 84 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: D1 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: D1 01 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: D1 01 00 A8 0A 00 83 [10:35:11]Write to MH i2c: 01 00 00 A9 0A B3 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]OFD Sender: No OFD packet to send [10:35:11]*** Cut start [10:35:11]*** Partial cut [10:35:11]*** CUTSNS_PIN = 1 [10:35:11]*** CUTSNS_PIN = 0 [10:35:12]*** Brake cut motor [10:35:12]Read from MH i2c: 01 [10:35:12]MH_I2C_Read... [10:35:12]*** Stop cut motor [10:35:12]*** Cut end [10:35:12]Read from MH i2c: 01 07 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: 01 07 00 A9 0A 00 00 00 00 00 FF 0F C8 [10:35:12]process_action close_receipt done [10:35:12]requested_data is exist [10:35:12]produce_requested_data [10:35:12]requested_item fm.sn is exist - process it [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 11 00 00 [10:35:12]Write to MH i2c: E2 08 00 AA 0A 80 11 00 00 00 00 00 00 2E [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 17 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 17 00 AA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 85 [10:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:35:12]wFMCommunicate OK [10:35:12]requested_item fd.num is exist - process it [10:35:12]SAM_PROTO_GetFieldsCounters [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 13 00 00 [10:35:12]Write to MH i2c: E2 08 00 AB 0A 80 13 00 00 00 00 00 00 31 [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 62 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 62 00 AB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 74 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:35: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 74 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetFieldsCounters done [10:35:12]requested_item shift.num is exist - process it [10:35:12]requested_item shift.opened is exist - process it [10:35:12]req_shift_opened [10:35:12]FM_GetShiftState [10:35:12]SAM_PROTO_GetShiftState [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 13 01 00 [10:35:12]Write to MH i2c: E2 08 00 AC 0A 80 13 01 00 00 00 00 00 33 [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 AC 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 CF [10:35:12]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetShiftState done [10:35:12]FM_GetShiftState done [10:35:12]req_shift_opened done [10:35:12]requested_item shift.open_date is exist - process it [10:35:12]req_shift_open_date [10:35:12]req_shift_open_date done [10:35:12]produce_requested_data done [10:35:12]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60532,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:35:12]process_action_free close_receipt [10:35:12]json_value_free [10:35:12]json_value_free done [10:35:12]process_json_proto returns [10:35:12]Send response to host [10:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60532,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:35:12]free response buf [10:35:12]execute_script done [10:35:12]execute_script returns [10:35:12]free content buf [10:35:12]Sock 9.Close socket [10:35:12]Sock 9.Thread stoped [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:38]accept exits with 7 [10:43:38]New connection [10:43:38]New thread 3067362660 created [10:43:38]Thread 3067219300 joined [10:43:38]Waiting for new connection... [10:43:38] Sock 7.Parse request [10:43:38]Sock 7.Check first char [10:43:38]Sock 7.First char is OK [10:43:38]request: POST /json_proto HTTP/1.0 [10:43:38]Method: POST [10:43:38]URL: /json_proto [10:43:38]Method is POST - this is cgi request [10:43:38]url: /json_proto [10:43:38]query_string will be loaded in cgi processing [10:43:38]execute_cgi json_proto POST (null) [10:43:38]execute_cgi path=json_proto method=POST [10:43:38]POST find Content-Length [10:43:38]Host: 172.17.42.196:8080 [10:43:38]Content-Length: 615 [10:43:38]Content-Type: application/json [10:43:38] [10:43:38]POST finish read [10:43:38]Found Content-Length = 615 [10:43:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200160", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 4.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:38]execute_script... [10:43:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200160", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 4.000, "sum" : 320.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:38]POST & json_proto [10:43:38]process_json_proto [10:43:38]json parsed OK: [10:43:38]protocol is kg_v1.0 [10:43:38]action value=close_receipt [10:43:38]process_action close_receipt [10:43:38]cmd_close_receipt [10:43:38]MH_GetDate [10:43:38]Write to MH i2c: F0 00 00 AD 0A A6 [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: F0 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: F0 09 00 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: F0 09 00 AD 0A 00 5B 19 1E 67 FF C4 6B 64 3A [10:43:38]GetLastDocTimeStamp 1730025309 [10:43:38]current date 1730025819 [10:43:38]FM_GetShiftState [10:43:38]SAM_PROTO_GetShiftState [10:43:38]wFMCommunicate request_size=4 [10:43:38]MH_SAM_APDU [10:43:38]CAPDU: 80 13 01 00 [10:43:38]Write to MH i2c: E2 08 00 AE 0A 80 13 01 00 00 00 00 00 35 [10:43:38]Write i2c OK [10:43:38]MH_I2C_Read... [10:43:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:38]Read from MH i2c: E2 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: E2 0E 00 [10:43:38]MH_I2C_Read... [10:43:38]Read from MH i2c: E2 0E 00 AE 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D1 [10:43:38]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:43:38]wFMCommunicate OK [10:43:38]SAM_PROTO_GetShiftState done [10:43:38]FM_GetShiftState done [10:43:38]opened in 1729989505 [10:43:38]opened+sec_in_day 1730075905 [10:43:38]quantity*price = 32000 [10:43:38]sum+1 = 32001 [10:43:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 65 27.10.2024 10:43 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60533 ФПД: 96231109279096 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104339&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60533&fm=96231109279096&tin=02508201610067®Number=0000000000091622&sum=32000 0 [10:43:39]StoreToDocumentArchive [10:43:39]shift 532 fd 60533 [10:43:39]save to /storage/0532/doc_00060533 [10:43:39]save last doc name /storage/0532/doc_00060533 to /storage/kkm_last_doc_name [10:43:39]save OK [10:43:39]Clear old archive folders... [10:43:39]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:43:39]tlvbuf is 0020DB50 [10:43:39]SAM_PROTO_ClearQueue [10:43:39]wFMCommunicate request_size=4 [10:43:39]MH_SAM_APDU [10:43:39]CAPDU: 80 09 00 00 [10:43:39]Write to MH i2c: E2 08 00 BB 0A 80 09 00 00 00 00 00 00 37 [10:43:39]Write i2c OK [10:43:39]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 BB 0A 00 90 00 39 [10:43:40]RAPDU: 90 00 [10:43:40]wFMCommunicate OK [10:43:40]SAM_PROTO_ClearQueue done [10:43:40]KKMCreateOFDPacket [10:43:40]OFDProtocolAddRootSTLVToBuf [10:43:40]FM_MakeSignedData [10:43:40]FM_MakeSignedData [10:43:40]SAM_PROTO_SignData [10:43:40]wFMCommunicate request_size=4 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 0D 01 02 [10:43:40]Write to MH i2c: E2 08 00 BC 0A 80 0D 01 02 00 00 00 00 3F [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 BC 0A 00 90 00 3A [10:43:40]RAPDU: 90 00 [10:43:40]wFMCommunicate OK [10:43:40]wFMCommunicate request_size=255 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 00 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [10:43:40]Write to MH i2c: E2 02 01 BD 0A 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 00 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 8E [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [10:43:40]RAPDU: 90 00 [10:43:40]wFMCommunicate OK [10:43:40]wFMCommunicate request_size=27 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 0D 02 02 16 34 36 37 34 10 04 04 00 75 EC 00 00 35 04 06 00 57 85 8D 15 BD 78 [10:43:40]Write to MH i2c: E2 1E 00 BE 0A 80 0D 02 02 16 00 34 36 37 34 10 04 04 00 75 EC 00 00 35 04 06 00 57 85 8D 15 BD 78 00 00 AE [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [10:43:40]RAPDU: 90 00 [10:43:40]wFMCommunicate OK [10:43:40]wFMCommunicate request_size=4 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 0D 03 02 [10:43:40]Write to MH i2c: E2 08 00 BF 0A 80 0D 03 02 00 00 00 00 44 [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 0B 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 0B 00 BF 0A 00 4B 22 F4 70 85 6C 0A 2F 90 00 40 [10:43:40]RAPDU: 4B 22 F4 70 85 6C 0A 2F 90 00 [10:43:40]wFMCommunicate OK [10:43:40]SAM_PROTO_SignData done [10:43:40]FM_MakeSignedData done [10:43:40]CreateOFDProtocolMessage [10:43:40]wFMCommunicate request_size=4 [10:43:40]MH_SAM_APDU [10:43:40]CAPDU: 80 11 00 00 [10:43:40]Write to MH i2c: E2 08 00 C0 0A 80 11 00 00 00 00 00 00 44 [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:40]Read from MH i2c: E2 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 17 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: E2 17 00 C0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9B [10:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:43:40]wFMCommunicate OK [10:43:40]CreateOFDProtocolMessage done [10:43:40]OFDSenderStorePacket 60533 [10:43:40]StoreOFDPacket docnum=60533 [10:43:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 20 01 00 00 FD C1 18 01 F3 9D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 00 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 75 EC 00 00 35 04 06 00 57 85 8D 15 BD 78 4B 22 F4 70 85 6C 0A 2F [10:43:40]CheckFolder [10:43:40]dirname=/storage/ofd_packets [10:43:40]CheckFolder done [10:43:40]ProducePacketName [10:43:40]name=ofd_packets/00060533 [10:43:40]NVStorageSaveData ofd_packets/00060533 [10:43:40]File name is /storage/ofd_packets/00060533 [10:43:40]Write 318 bytes [10:43:40]NVStorageSaveData done [10:43:40]OFDSenderStorePacket done [10:43:40]KKMCreateOFDPacket done [10:43:40]NVStorageSaveData kkm_last_timestamp [10:43:40]File name is /storage/kkm_last_timestamp [10:43:40]Write 4 bytes [10:43:40]NVStorageSaveData done [10:43:40]ExternCall_PrintAddStr [10:43:40]wPrintStart [10:43:40]Write to MH i2c: 01 00 00 C1 0A CB [10:43:40]Write i2c OK [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: 01 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: 01 07 00 [10:43:40]MH_I2C_Read... [10:43:40]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 FF 0F E0 [10:43:40]RasterBufferAndPrint [10:43:40]line Счет N : (3)200160 [10:43:40]line ИНН: 02508201610067 [10:43:40]line Контрольно-Кассовый Чек [10:43:40]line ПРОДАЖА [10:43:40]line Товар: 4870001570057 [10:43:40]line Напиток Pepsi 0,5л [10:43:40]line 4.000 * 80.00 [10:43:40]line = 320.00 [10:43:40]line НДС 12% НСП 1% [10:43:40]line > о реализуемом товаре [10:43:40]line ИТОГО: 320.00 [10:43:40]line НСП 1% : 2.83 [10:43:40]line НДС 12% : 33.98 [10:43:40]line Наличными: 320.00 [10:43:40]line Безнал.: 0.00 [10:43:40]line Место: АЗС № 87 "Партнер Нефть" [10:43:40]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:43:40]line СНО: Общий режим [10:43:40]line Чек 65 27.10.2024 10:43 [10:43:40]line Смена: 532 ФФД: 1.0 [10:43:40]line ЗНМ: 0300000084 [10:43:40]line РНМ: 0000000000091622 [10:43:40]line Версия ККМ: 001 [10:43:40]line ФМ: 0000000000874674 [10:43:40]line ФД: 60533 [10:43:40]line ФПД: 96231109279096 [10:43:40]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104339&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60533&fm=96231109279096&tin=02508201610067®Number=0000000000091622&sum=32000 [10:43:40]OFD Sender: Processing packet 60533 [packets to send 30, broken 29] [10:43:40]ProducePacketName [10:43:40]name=ofd_packets/00060533 [10:43:40]OFD Sender: To server: pG, [10:43:40]CommunicateWithHost lk.salyk.kg:30040 [10:43:40]ConnectInit lk.salyk.kg [10:43:40]line 0 [10:43:40]written 0, free lines is 4095 [10:43:40]Connected sock=10 [10:43: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 36 37 34 20 01 00 00 FD C1 18 01 F3 9D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 00 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 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 5B 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 75 EC 00 00 35 04 06 00 57 85 8D 15 BD 78 4B 22 F4 70 85 6C 0A 2F [10:43:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 C3 08 47 00 26 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 36 37 34 10 04 04 00 75 EC 00 00 F4 03 04 00 43 BF 1D 67 B6 04 01 00 00 93 50 DE E8 9C 13 5E 31 [10:43:41]CommunicateWithHost err = 0 [10:43:41]CheckOFDResponse [10:43:41]1017 (14) - 77093643461234 [10:43:41]1041 (16) - 0000000000874674 [10:43:41]1040 (4) - 60533 [10:43:41]1012 (4) - 27.10.2024 04:19 [10:43:41]1206 (1) - 0 [10:43:41]OFD Sender: Remove packet 60533 [10:43:41]ProducePacketName [10:43:41]name=ofd_packets/00060533 [10:43:41]NVStorageDeleteData [10:43:41]Write to MH i2c: 01 00 00 E9 0A F3 [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 07 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 02 0D 09 [10:43:41]RasterBufferAndPrint [10:43:41]line [10:43:41]line [10:43:41]line [10:43:41]line [10:43:41]line [10:43:41]written 0, free lines is 3337 [10:43:41]MH_Cut [10:43:41]Write to MH i2c: D1 01 00 F0 0A 01 CC [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: D1 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: D1 01 00 [10:43:41]MH_I2C_Read... [10:43:41]Read from MH i2c: D1 01 00 F0 0A 00 CB [10:43:41]Write to MH i2c: 01 00 00 F1 0A FB [10:43:41]Write i2c OK [10:43:41]MH_I2C_Read... [10:43:41]OFD Sender: No OFD packet to send [10:43:42]*** Cut start [10:43:42]*** Partial cut [10:43:42]*** CUTSNS_PIN = 1 [10:43:42]*** CUTSNS_PIN = 0 [10:43:42]*** Brake cut motor [10:43:42]Read from MH i2c: 01 [10:43:42]MH_I2C_Read... [10:43:42]*** Stop cut motor [10:43:42]*** Cut end [10:43:42]Read from MH i2c: 01 07 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [10:43:42]process_action close_receipt done [10:43:42]requested_data is exist [10:43:42]produce_requested_data [10:43:42]requested_item fm.sn is exist - process it [10:43:42]wFMCommunicate request_size=4 [10:43:42]MH_SAM_APDU [10:43:42]CAPDU: 80 11 00 00 [10:43:42]Write to MH i2c: E2 08 00 F2 0A 80 11 00 00 00 00 00 00 76 [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:42]Read from MH i2c: E2 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 17 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 17 00 F2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 CD [10:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:43:42]wFMCommunicate OK [10:43:42]requested_item fd.num is exist - process it [10:43:42]SAM_PROTO_GetFieldsCounters [10:43:42]wFMCommunicate request_size=4 [10:43:42]MH_SAM_APDU [10:43:42]CAPDU: 80 13 00 00 [10:43:42]Write to MH i2c: E2 08 00 F3 0A 80 13 00 00 00 00 00 00 79 [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:42]Read from MH i2c: E2 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 62 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 62 00 F3 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 75 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:43: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 75 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:42]wFMCommunicate OK [10:43:42]SAM_PROTO_GetFieldsCounters done [10:43:42]requested_item shift.num is exist - process it [10:43:42]requested_item shift.opened is exist - process it [10:43:42]req_shift_opened [10:43:42]FM_GetShiftState [10:43:42]SAM_PROTO_GetShiftState [10:43:42]wFMCommunicate request_size=4 [10:43:42]MH_SAM_APDU [10:43:42]CAPDU: 80 13 01 00 [10:43:42]Write to MH i2c: E2 08 00 F4 0A 80 13 01 00 00 00 00 00 7B [10:43:42]Write i2c OK [10:43:42]MH_I2C_Read... [10:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:42]Read from MH i2c: E2 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 0E 00 [10:43:42]MH_I2C_Read... [10:43:42]Read from MH i2c: E2 0E 00 F4 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 17 [10:43:42]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:43:42]wFMCommunicate OK [10:43:42]SAM_PROTO_GetShiftState done [10:43:42]FM_GetShiftState done [10:43:42]req_shift_opened done [10:43:42]requested_item shift.open_date is exist - process it [10:43:42]req_shift_open_date [10:43:42]req_shift_open_date done [10:43:42]produce_requested_data done [10:43:42]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60533,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:43:42]process_action_free close_receipt [10:43:42]json_value_free [10:43:42]json_value_free done [10:43:42]process_json_proto returns [10:43:42]Send response to host [10:43:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60533,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:43:42]free response buf [10:43:42]execute_script done [10:43:42]execute_script returns [10:43:42]free content buf [10:43:42]Sock 7.Close socket [10:43:42]Sock 7.Thread stoped [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:08]accept exits with 9 [10:44:08]New connection [10:44:08]New thread 3067219300 created [10:44:08]Thread 3067362660 joined [10:44:08]Waiting for new connection... [10:44:08] Sock 9.Parse request [10:44:08]Sock 9.Check first char [10:44:08]Sock 9.First char is OK [10:44:08]request: POST /json_proto HTTP/1.0 [10:44:08]Method: POST [10:44:08]URL: /json_proto [10:44:08]Method is POST - this is cgi request [10:44:08]url: /json_proto [10:44:08]query_string will be loaded in cgi processing [10:44:08]execute_cgi json_proto POST (null) [10:44:08]execute_cgi path=json_proto method=POST [10:44:08]POST find Content-Length [10:44:08]Host: 172.17.42.196:8080 [10:44:08]Content-Length: 654 [10:44:08]Content-Type: application/json [10:44:08] [10:44:08]POST finish read [10:44:08]Found Content-Length = 654 [10:44:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200161", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:08]execute_script... [10:44:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200161", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:08]POST & json_proto [10:44:08]process_json_proto [10:44:08]json parsed OK: [10:44:08]protocol is kg_v1.0 [10:44:08]action value=close_receipt [10:44:08]process_action close_receipt [10:44:08]cmd_close_receipt [10:44:08]MH_GetDate [10:44:08]Write to MH i2c: F0 00 00 F5 0A EE [10:44:08]Write i2c OK [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: F0 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: F0 09 00 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: F0 09 00 F5 0A 00 79 19 1E 67 FF C4 6B 64 A0 [10:44:08]GetLastDocTimeStamp 1730025819 [10:44:08]current date 1730025849 [10:44:08]FM_GetShiftState [10:44:08]SAM_PROTO_GetShiftState [10:44:08]wFMCommunicate request_size=4 [10:44:08]MH_SAM_APDU [10:44:08]CAPDU: 80 13 01 00 [10:44:08]Write to MH i2c: E2 08 00 F6 0A 80 13 01 00 00 00 00 00 7D [10:44:08]Write i2c OK [10:44:08]MH_I2C_Read... [10:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:08]Read from MH i2c: E2 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: E2 0E 00 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: E2 0E 00 F6 0A 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 19 [10:44:08]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:44:08]wFMCommunicate OK [10:44:08]SAM_PROTO_GetShiftState done [10:44:08]FM_GetShiftState done [10:44:08]opened in 1729989505 [10:44:08]opened+sec_in_day 1730075905 [10:44:08]quantity*price = 9500 [10:44:08]sum+1 = 9501 [10:44:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 66 27.10.2024 10:44 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60534 ФПД: 181042573470525 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104409&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60534&fm=181042573470525&tin=02508201610067®Number=0000000000091622&sum=9500 0 [10:44:10]StoreToDocumentArchive [10:44:10]shift 532 fd 60534 [10:44:10]save to /storage/0532/doc_00060534 [10:44:10]save last doc name /storage/0532/doc_00060534 to /storage/kkm_last_doc_name [10:44:10]save OK [10:44:10]Clear old archive folders... [10:44:10]ProcessDocumentItem done err = 0, tmpTLVsize=293 [10:44:10]tlvbuf is 0020D570 [10:44:10]SAM_PROTO_ClearQueue [10:44:10]wFMCommunicate request_size=4 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 09 00 00 [10:44:10]Write to MH i2c: E2 08 00 03 0B 80 09 00 00 00 00 00 00 80 [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [10:44:10]RAPDU: 90 00 [10:44:10]wFMCommunicate OK [10:44:10]SAM_PROTO_ClearQueue done [10:44:10]KKMCreateOFDPacket [10:44:10]OFDProtocolAddRootSTLVToBuf [10:44:10]FM_MakeSignedData [10:44:10]FM_MakeSignedData [10:44:10]SAM_PROTO_SignData [10:44:10]wFMCommunicate request_size=4 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 0D 01 02 [10:44:10]Write to MH i2c: E2 08 00 04 0B 80 0D 01 02 00 00 00 00 88 [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [10:44:10]RAPDU: 90 00 [10:44:10]wFMCommunicate OK [10:44:10]wFMCommunicate request_size=255 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 79 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [10:44:10]Write to MH i2c: E2 02 01 05 0B 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 79 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 97 [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [10:44:10]RAPDU: 90 00 [10:44:10]wFMCommunicate OK [10:44:10]wFMCommunicate request_size=52 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 76 EC 00 00 35 04 06 00 A4 A8 42 47 EB 3D [10:44:10]Write to MH i2c: E2 37 00 06 0B 80 0D 02 02 2F 00 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 76 EC 00 00 35 04 06 00 A4 A8 42 47 EB 3D 00 00 AC [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 03 00 06 0B 00 90 00 85 [10:44:10]RAPDU: 90 00 [10:44:10]wFMCommunicate OK [10:44:10]wFMCommunicate request_size=4 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 0D 03 02 [10:44:10]Write to MH i2c: E2 08 00 07 0B 80 0D 03 02 00 00 00 00 8D [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 0B 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 0B 00 07 0B 00 CF 7D 66 AA 4C 26 28 93 90 00 17 [10:44:10]RAPDU: CF 7D 66 AA 4C 26 28 93 90 00 [10:44:10]wFMCommunicate OK [10:44:10]SAM_PROTO_SignData done [10:44:10]FM_MakeSignedData done [10:44:10]CreateOFDProtocolMessage [10:44:10]wFMCommunicate request_size=4 [10:44:10]MH_SAM_APDU [10:44:10]CAPDU: 80 11 00 00 [10:44:10]Write to MH i2c: E2 08 00 08 0B 80 11 00 00 00 00 00 00 8D [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:10]Read from MH i2c: E2 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 17 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: E2 17 00 08 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E4 [10:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:44:10]wFMCommunicate OK [10:44:10]CreateOFDProtocolMessage done [10:44:10]OFDSenderStorePacket 60534 [10:44:10]StoreOFDPacket docnum=60534 [10:44:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 39 01 00 00 77 BC 31 01 2B 30 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 79 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 76 EC 00 00 35 04 06 00 A4 A8 42 47 EB 3D CF 7D 66 AA 4C 26 28 93 [10:44:10]CheckFolder [10:44:10]dirname=/storage/ofd_packets [10:44:10]CheckFolder done [10:44:10]ProducePacketName [10:44:10]name=ofd_packets/00060534 [10:44:10]NVStorageSaveData ofd_packets/00060534 [10:44:10]File name is /storage/ofd_packets/00060534 [10:44:10]Write 343 bytes [10:44:10]NVStorageSaveData done [10:44:10]OFDSenderStorePacket done [10:44:10]KKMCreateOFDPacket done [10:44:10]NVStorageSaveData kkm_last_timestamp [10:44:10]File name is /storage/kkm_last_timestamp [10:44:10]Write 4 bytes [10:44:10]NVStorageSaveData done [10:44:10]ExternCall_PrintAddStr [10:44:10]wPrintStart [10:44:10]Write to MH i2c: 01 00 00 09 0B 14 [10:44:10]Write i2c OK [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: 01 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: 01 07 00 [10:44:10]MH_I2C_Read... [10:44:10]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [10:44:10]RasterBufferAndPrint [10:44:10]line Счет N : (3)200161 [10:44:10]line ИНН: 02508201610067 [10:44:10]line Контрольно-Кассовый Чек [10:44:10]line ПРОДАЖА [10:44:10]line Товар: 4700000480050 [10:44:10]line Напиток Nitro Energy эн green ж/б 0,45л [10:44:10]line 1.000 * 95.00 [10:44:10]line = 95.00 [10:44:10]line НДС 12% НСП 1% [10:44:10]line > о реализуемом товаре [10:44:10]line ИТОГО: 95.00 [10:44:10]line НСП 1% : 0.84 [10:44:10]line НДС 12% : 10.09 [10:44:10]line Наличными: 95.00 [10:44:10]line Безнал.: 0.00 [10:44:10]line Место: АЗС № 87 "Партнер Нефть" [10:44:10]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:44:10]line СНО: Общий режим [10:44:10]line Чек 66 27.10.2024 10:44 [10:44:10]line Смена: 532 ФФД: 1.0 [10:44:10]line ЗНМ: 0300000084 [10:44:10]line РНМ: 0000000000091622 [10:44:10]line Версия ККМ: 001 [10:44:10]line ФМ: 0000000000874674 [10:44:10]line ФД: 60534 [10:44:10]line ФПД: 181042573470525 [10:44:10]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104409&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60534&fm=181042573470525&tin=02508201610067®Number=0000000000091622&sum=9500 [10:44:10]line 0 [10:44:10]OFD Sender: Processing packet 60534 [packets to send 30, broken 29] [10:44:10]ProducePacketName [10:44:10]name=ofd_packets/00060534 [10:44:10]OFD Sender: To server: pG, [10:44:10]CommunicateWithHost lk.salyk.kg:30040 [10:44:10]ConnectInit lk.salyk.kg [10:44:10]written 0, free lines is 4095 [10:44:11]Connected sock=10 [10:44: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 36 37 34 39 01 00 00 77 BC 31 01 2B 30 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 79 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 76 EC 00 00 35 04 06 00 A4 A8 42 47 EB 3D CF 7D 66 AA 4C 26 28 93 [10:44:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 C8 B8 47 00 F3 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 36 37 34 10 04 04 00 76 EC 00 00 F4 03 04 00 61 BF 1D 67 B6 04 01 00 00 29 60 BF 5A 76 F0 D9 5E [10:44:11]CommunicateWithHost err = 0 [10:44:11]CheckOFDResponse [10:44:11]1017 (14) - 77093643461234 [10:44:11]1041 (16) - 0000000000874674 [10:44:11]1040 (4) - 60534 [10:44:11]1012 (4) - 27.10.2024 04:19 [10:44:11]1206 (1) - 0 [10:44:11]OFD Sender: Remove packet 60534 [10:44:11]ProducePacketName [10:44:11]name=ofd_packets/00060534 [10:44:11]NVStorageDeleteData [10:44:11]Write to MH i2c: 01 00 00 32 0B 3D [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: 01 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: 01 07 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 E7 0C 37 [10:44:11]RasterBufferAndPrint [10:44:11]line [10:44:11]line [10:44:11]line [10:44:11]line [10:44:11]line [10:44:11]written 0, free lines is 3310 [10:44:11]MH_Cut [10:44:11]Write to MH i2c: D1 01 00 39 0B 01 16 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: D1 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: D1 01 00 [10:44:11]MH_I2C_Read... [10:44:11]Read from MH i2c: D1 01 00 39 0B 00 15 [10:44:11]Write to MH i2c: 01 00 00 3A 0B 45 [10:44:11]Write i2c OK [10:44:11]MH_I2C_Read... [10:44:11]OFD Sender: No OFD packet to send [10:44:12]*** Cut start [10:44:12]*** Partial cut [10:44:12]*** CUTSNS_PIN = 1 [10:44:12]*** CUTSNS_PIN = 0 [10:44:12]*** Brake cut motor [10:44:12]Read from MH i2c: 01 [10:44:12]MH_I2C_Read... [10:44:12]*** Stop cut motor [10:44:12]*** Cut end [10:44:12]Read from MH i2c: 01 07 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 FF 0F 5A [10:44:12]process_action close_receipt done [10:44:12]requested_data is exist [10:44:12]produce_requested_data [10:44:12]requested_item fm.sn is exist - process it [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 11 00 00 [10:44:12]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 17 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 17 [10:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:44:12]wFMCommunicate OK [10:44:12]requested_item fd.num is exist - process it [10:44:12]SAM_PROTO_GetFieldsCounters [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 13 00 00 [10:44:12]Write to MH i2c: E2 08 00 3C 0B 80 13 00 00 00 00 00 00 C3 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:12]Read from MH i2c: E2 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 62 00 [10:44:12]MH_I2C_Read... [10:44:12]Read from MH i2c: E2 62 00 3C 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 76 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:44: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 76 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:12]wFMCommunicate OK [10:44:12]SAM_PROTO_GetFieldsCounters done [10:44:12]requested_item shift.num is exist - process it [10:44:12]requested_item shift.opened is exist - process it [10:44:12]req_shift_opened [10:44:12]FM_GetShiftState [10:44:12]SAM_PROTO_GetShiftState [10:44:12]wFMCommunicate request_size=4 [10:44:12]MH_SAM_APDU [10:44:12]CAPDU: 80 13 01 00 [10:44:12]Write to MH i2c: E2 08 00 3D 0B 80 13 01 00 00 00 00 00 C5 [10:44:12]Write i2c OK [10:44:12]MH_I2C_Read... [10:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:13]Read from MH i2c: E2 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: E2 0E 00 [10:44:13]MH_I2C_Read... [10:44:13]Read from MH i2c: E2 0E 00 3D 0B 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 61 [10:44:13]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:44:13]wFMCommunicate OK [10:44:13]SAM_PROTO_GetShiftState done [10:44:13]FM_GetShiftState done [10:44:13]req_shift_opened done [10:44:13]requested_item shift.open_date is exist - process it [10:44:13]req_shift_open_date [10:44:13]req_shift_open_date done [10:44:13]produce_requested_data done [10:44:13]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60534,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:44:13]process_action_free close_receipt [10:44:13]json_value_free [10:44:13]json_value_free done [10:44:13]process_json_proto returns [10:44:13]Send response to host [10:44:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60534,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:44:13]free response buf [10:44:13]execute_script done [10:44:13]execute_script returns [10:44:13]free content buf [10:44:13]Sock 9.Close socket [10:44:13]Sock 9.Thread stoped [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:29]accept exits with 7 [10:45:29]New connection [10:45:29]New thread 3067362660 created [10:45:29]Thread 3067219300 joined [10:45:29]Waiting for new connection... [10:45:29] Sock 7.Parse request [10:45:29]Sock 7.Check first char [10:45:29]Sock 7.First char is OK [10:45:29]request: POST /json_proto HTTP/1.0 [10:45:29]Method: POST [10:45:29]URL: /json_proto [10:45:29]Method is POST - this is cgi request [10:45:29]url: /json_proto [10:45:29]query_string will be loaded in cgi processing [10:45:29]execute_cgi json_proto POST (null) [10:45:29]execute_cgi path=json_proto method=POST [10:45:29]POST find Content-Length [10:45:29]Host: 172.17.42.196:8080 [10:45:29]Content-Length: 645 [10:45:29]Content-Type: application/json [10:45:29] [10:45:29]POST finish read [10:45:29]Found Content-Length = 645 [10:45:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200162", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:29]execute_script... [10: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 : (3)200162", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:29]POST & json_proto [10:45:29]process_json_proto [10:45:29]json parsed OK: [10:45:29]protocol is kg_v1.0 [10:45:29]action value=close_receipt [10:45:29]process_action close_receipt [10:45:29]cmd_close_receipt [10:45:29]MH_GetDate [10:45:29]Write to MH i2c: F0 00 00 3E 0B 38 [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: F0 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: F0 09 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: F0 09 00 3E 0B 00 CA 19 1E 67 FF C4 6B 64 3B [10:45:29]GetLastDocTimeStamp 1730025849 [10:45:29]current date 1730025930 [10:45:29]FM_GetShiftState [10:45:29]SAM_PROTO_GetShiftState [10:45:29]wFMCommunicate request_size=4 [10:45:29]MH_SAM_APDU [10:45:29]CAPDU: 80 13 01 00 [10:45:29]Write to MH i2c: E2 08 00 3F 0B 80 13 01 00 00 00 00 00 C7 [10:45:29]Write i2c OK [10:45:29]MH_I2C_Read... [10:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:29]Read from MH i2c: E2 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 0E 00 [10:45:29]MH_I2C_Read... [10:45:29]Read from MH i2c: E2 0E 00 3F 0B 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 63 [10:45:29]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:45:29]wFMCommunicate OK [10:45:29]SAM_PROTO_GetShiftState done [10:45:29]FM_GetShiftState done [10:45:29]opened in 1729989505 [10:45:29]opened+sec_in_day 1730075905 [10:45:29]quantity*price = 6500 [10:45:29]sum+1 = 6501 [10:45:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 67 27.10.2024 10:45 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60535 ФПД: 145914510741688 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104530&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60535&fm=145914510741688&tin=02508201610067®Number=0000000000091622&sum=6500 0 [10:45:30]StoreToDocumentArchive [10:45:30]shift 532 fd 60535 [10:45:30]save to /storage/0532/doc_00060535 [10:45:30]save last doc name /storage/0532/doc_00060535 to /storage/kkm_last_doc_name [10:45:30]save OK [10:45:30]Clear old archive folders... [10:45:30]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:45:30]tlvbuf is 0020D440 [10:45:30]SAM_PROTO_ClearQueue [10:45:30]wFMCommunicate request_size=4 [10:45:30]MH_SAM_APDU [10:45:30]CAPDU: 80 09 00 00 [10:45:30]Write to MH i2c: E2 08 00 4C 0B 80 09 00 00 00 00 00 00 C9 [10:45:30]Write i2c OK [10:45:30]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 4C 0B 00 90 00 CB [10:45:31]RAPDU: 90 00 [10:45:31]wFMCommunicate OK [10:45:31]SAM_PROTO_ClearQueue done [10:45:31]KKMCreateOFDPacket [10:45:31]OFDProtocolAddRootSTLVToBuf [10:45:31]FM_MakeSignedData [10:45:31]FM_MakeSignedData [10:45:31]SAM_PROTO_SignData [10:45:31]wFMCommunicate request_size=4 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 0D 01 02 [10:45:31]Write to MH i2c: E2 08 00 4D 0B 80 0D 01 02 00 00 00 00 D1 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 4D 0B 00 90 00 CC [10:45:31]RAPDU: 90 00 [10:45:31]wFMCommunicate OK [10:45:31]wFMCommunicate request_size=255 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CA 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 [10:45:31]Write to MH i2c: E2 02 01 4E 0B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CA 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 00 00 D9 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 4E 0B 00 90 00 CD [10:45:31]RAPDU: 90 00 [10:45:31]wFMCommunicate OK [10:45:31]wFMCommunicate request_size=31 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 34 10 04 04 00 77 EC 00 00 35 04 06 00 84 B5 5E 94 90 B8 [10:45:31]Write to MH i2c: E2 22 00 4F 0B 80 0D 02 02 1A 00 30 30 38 37 34 36 37 34 10 04 04 00 77 EC 00 00 35 04 06 00 84 B5 5E 94 90 B8 00 00 D9 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 03 00 4F 0B 00 90 00 CE [10:45:31]RAPDU: 90 00 [10:45:31]wFMCommunicate OK [10:45:31]wFMCommunicate request_size=4 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 0D 03 02 [10:45:31]Write to MH i2c: E2 08 00 50 0B 80 0D 03 02 00 00 00 00 D6 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0B 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0B 00 50 0B 00 85 26 DC 52 69 5D 74 DB 90 00 C5 [10:45:31]RAPDU: 85 26 DC 52 69 5D 74 DB 90 00 [10:45:31]wFMCommunicate OK [10:45:31]SAM_PROTO_SignData done [10:45:31]FM_MakeSignedData done [10:45:31]CreateOFDProtocolMessage [10:45:31]wFMCommunicate request_size=4 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 11 00 00 [10:45:31]Write to MH i2c: E2 08 00 51 0B 80 11 00 00 00 00 00 00 D6 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 17 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 17 00 51 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 2D [10:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:45:31]wFMCommunicate OK [10:45:31]CreateOFDProtocolMessage done [10:45:31]OFDSenderStorePacket 60535 [10:45:31]StoreOFDPacket docnum=60535 [10:45:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 24 01 00 00 D6 CC 1C 01 44 16 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CA 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 77 EC 00 00 35 04 06 00 84 B5 5E 94 90 B8 85 26 DC 52 69 5D 74 DB [10:45:31]CheckFolder [10:45:31]dirname=/storage/ofd_packets [10:45:31]CheckFolder done [10:45:31]ProducePacketName [10:45:31]name=ofd_packets/00060535 [10:45:31]NVStorageSaveData ofd_packets/00060535 [10:45:31]File name is /storage/ofd_packets/00060535 [10:45:31]Write 322 bytes [10:45:31]NVStorageSaveData done [10:45:31]OFDSenderStorePacket done [10:45:31]KKMCreateOFDPacket done [10:45:31]NVStorageSaveData kkm_last_timestamp [10:45:31]File name is /storage/kkm_last_timestamp [10:45:31]Write 4 bytes [10:45:31]NVStorageSaveData done [10:45:31]ExternCall_PrintAddStr [10:45:31]wPrintStart [10:45:31]Write to MH i2c: 01 00 00 52 0B 5D [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: 01 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: 01 07 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: 01 07 00 52 0B 00 00 00 00 00 FF 0F 72 [10:45:31]RasterBufferAndPrint [10:45:31]line Счет N : (3)200162 [10:45:31]line ИНН: 02508201610067 [10:45:31]line Контрольно-Кассовый Чек [10:45:31]line ПРОДАЖА [10:45:31]line Товар: 47011656 [10:45:31]line Водка Пшеничная 0,1л [10:45:31]line 1.000 * 65.00 [10:45:31]line = 65.00 [10:45:31]line НДС 12% НСП 1% [10:45:31]line > о реализуемом товаре [10:45:31]line ИТОГО: 65.00 [10:45:31]line НСП 1% : 0.57 [10:45:31]line НДС 12% : 6.90 [10:45:31]line Наличными: 65.00 [10:45:31]line Безнал.: 0.00 [10:45:31]line Место: АЗС № 87 "Партнер Нефть" [10:45:31]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:45:31]line СНО: Общий режим [10:45:31]line Чек 67 27.10.2024 10:45 [10:45:31]line Смена: 532 ФФД: 1.0 [10:45:31]line ЗНМ: 0300000084 [10:45:31]line РНМ: 0000000000091622 [10:45:31]line Версия ККМ: 001 [10:45:31]line ФМ: 0000000000874674 [10:45:31]line ФД: 60535 [10:45:31]line ФПД: 145914510741688 [10:45:31]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104530&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60535&fm=145914510741688&tin=02508201610067®Number=0000000000091622&sum=6500 [10:45:31]OFD Sender: Processing packet 60535 [packets to send 30, broken 29] [10:45:31]ProducePacketName [10:45:31]name=ofd_packets/00060535 [10:45:31]OFD Sender: To server: pG, [10:45:31]CommunicateWithHost lk.salyk.kg:30040 [10:45:31]ConnectInit lk.salyk.kg [10:45:31]line 0 [10:45:31]written 0, free lines is 4095 [10:45:31]Connected sock=10 [10: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 36 37 34 24 01 00 00 D6 CC 1C 01 44 16 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 CA 19 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 77 EC 00 00 35 04 06 00 84 B5 5E 94 90 B8 85 26 DC 52 69 5D 74 DB [10: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 36 37 34 4F 00 00 00 A2 1B 47 00 4D 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 36 37 34 10 04 04 00 77 EC 00 00 F4 03 04 00 B2 BF 1D 67 B6 04 01 00 00 67 3C DF BE 54 09 50 DD [10:45:32]CommunicateWithHost err = 0 [10:45:32]CheckOFDResponse [10:45:32]1017 (14) - 77093643461234 [10:45:32]1041 (16) - 0000000000874674 [10:45:32]1040 (4) - 60535 [10:45:32]1012 (4) - 27.10.2024 04:21 [10:45:32]1206 (1) - 0 [10:45:32]OFD Sender: Remove packet 60535 [10:45:32]ProducePacketName [10:45:32]name=ofd_packets/00060535 [10:45:32]NVStorageDeleteData [10:45:32]Write to MH i2c: 01 00 00 7A 0B 85 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: 01 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: 01 07 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: 01 07 00 7A 0B 00 00 00 00 00 04 0D 9D [10:45:32]RasterBufferAndPrint [10:45:32]line [10:45:32]line [10:45:32]line [10:45:32]line [10:45:32]line [10:45:32]written 0, free lines is 3337 [10:45:32]MH_Cut [10:45:32]Write to MH i2c: D1 01 00 81 0B 01 5E [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: D1 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: D1 01 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: D1 01 00 81 0B 00 5D [10:45:32]Write to MH i2c: 01 00 00 82 0B 8D [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]OFD Sender: No OFD packet to send [10:45:33]*** Cut start [10:45:33]*** Partial cut [10:45:33]*** CUTSNS_PIN = 1 [10:45:33]*** CUTSNS_PIN = 0 [10:45:33]*** Brake cut motor [10:45:33]Read from MH i2c: 01 [10:45:33]MH_I2C_Read... [10:45:33]*** Stop cut motor [10:45:33]*** Cut end [10:45:33]Read from MH i2c: 01 07 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 07 00 82 0B 00 00 00 00 00 FF 0F A2 [10:45:33]process_action close_receipt done [10:45:33]requested_data is exist [10:45:33]produce_requested_data [10:45:33]requested_item fm.sn is exist - process it [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 11 00 00 [10:45:33]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 83 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 5F [10:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:45:33]wFMCommunicate OK [10:45:33]requested_item fd.num is exist - process it [10:45:33]SAM_PROTO_GetFieldsCounters [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 13 00 00 [10:45:33]Write to MH i2c: E2 08 00 84 0B 80 13 00 00 00 00 00 00 0B [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 62 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 62 00 84 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 77 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [10: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 77 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:33]wFMCommunicate OK [10:45:33]SAM_PROTO_GetFieldsCounters done [10:45:33]requested_item shift.num is exist - process it [10:45:33]requested_item shift.opened is exist - process it [10:45:33]req_shift_opened [10:45:33]FM_GetShiftState [10:45:33]SAM_PROTO_GetShiftState [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 13 01 00 [10:45:33]Write to MH i2c: E2 08 00 85 0B 80 13 01 00 00 00 00 00 0D [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0E 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0E 00 85 0B 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 A9 [10:45:33]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:45:33]wFMCommunicate OK [10:45:33]SAM_PROTO_GetShiftState done [10:45:33]FM_GetShiftState done [10:45:33]req_shift_opened done [10:45:33]requested_item shift.open_date is exist - process it [10:45:33]req_shift_open_date [10:45:33]req_shift_open_date done [10:45:33]produce_requested_data done [10:45:33]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60535,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:45:33]process_action_free close_receipt [10:45:33]json_value_free [10:45:33]json_value_free done [10:45:33]process_json_proto returns [10:45:33]Send response to host [10:45:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60535,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:45:33]free response buf [10:45:33]execute_script done [10:45:33]execute_script returns [10:45:33]free content buf [10:45:33]Sock 7.Close socket [10:45:33]Sock 7.Thread stoped [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]accept exits with 9 [10:50:32]New connection [10:50:32]New thread 3067219300 created [10:50:32]Thread 3067362660 joined [10:50:32]Waiting for new connection... [10:50:32] Sock 9.Parse request [10:50:32]Sock 9.Check first char [10:50:32]Sock 9.First char is OK [10:50:32]request: POST /json_proto HTTP/1.0 [10:50:32]Method: POST [10:50:32]URL: /json_proto [10:50:32]Method is POST - this is cgi request [10:50:32]url: /json_proto [10:50:32]query_string will be loaded in cgi processing [10:50:32]execute_cgi json_proto POST (null) [10:50:32]execute_cgi path=json_proto method=POST [10:50:32]POST find Content-Length [10:50:32]Host: 172.17.42.196:8080 [10:50:32]Content-Length: 903 [10:50:32]Content-Type: application/json [10:50:32] [10:50:32]POST finish read [10:50:32]Found Content-Length = 903 [10:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200163", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:32]execute_script... [10:50:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200163", "tax_sys" : 0, "items" : [ { "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:32]POST & json_proto [10:50:32]process_json_proto [10:50:32]json parsed OK: [10:50:32]protocol is kg_v1.0 [10:50:32]action value=close_receipt [10:50:32]process_action close_receipt [10:50:32]cmd_close_receipt [10:50:32]MH_GetDate [10:50:32]Write to MH i2c: F0 00 00 86 0B 80 [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: F0 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: F0 09 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: F0 09 00 86 0B 00 F8 1A 1E 67 FF C4 6B 64 B2 [10:50:32]GetLastDocTimeStamp 1730025930 [10:50:32]current date 1730026232 [10:50:32]FM_GetShiftState [10:50:32]SAM_PROTO_GetShiftState [10:50:32]wFMCommunicate request_size=4 [10:50:32]MH_SAM_APDU [10:50:32]CAPDU: 80 13 01 00 [10:50:32]Write to MH i2c: E2 08 00 87 0B 80 13 01 00 00 00 00 00 0F [10:50:32]Write i2c OK [10:50:32]MH_I2C_Read... [10:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:32]Read from MH i2c: E2 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 0E 00 [10:50:32]MH_I2C_Read... [10:50:32]Read from MH i2c: E2 0E 00 87 0B 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 AB [10:50:32]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:50:32]wFMCommunicate OK [10:50:32]SAM_PROTO_GetShiftState done [10:50:32]FM_GetShiftState done [10:50:32]opened in 1729989505 [10:50:32]opened+sec_in_day 1730075905 [10:50:32]quantity*price = 4500 [10:50:32]sum+1 = 4501 [10:50:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160884 Снек Курут индивидуальный 1.000 * 15.00 = 15.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 68 27.10.2024 10:50 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60536 ФПД: 110067211751136 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105032&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60536&fm=110067211751136&tin=02508201610067®Number=0000000000091622&sum=6000 0 [10:50:33]StoreToDocumentArchive [10:50:33]shift 532 fd 60536 [10:50:33]save to /storage/0532/doc_00060536 [10:50:33]save last doc name /storage/0532/doc_00060536 to /storage/kkm_last_doc_name [10:50:33]save OK [10:50:33]Clear old archive folders... [10:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=386 [10:50:33]tlvbuf is 001ABE40 [10:50:33]SAM_PROTO_ClearQueue [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 09 00 00 [10:50:33]Write to MH i2c: E2 08 00 94 0B 80 09 00 00 00 00 00 00 11 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [10:50:33]RAPDU: 90 00 [10:50:33]wFMCommunicate OK [10:50:33]SAM_PROTO_ClearQueue done [10:50:33]KKMCreateOFDPacket [10:50:33]OFDProtocolAddRootSTLVToBuf [10:50:33]FM_MakeSignedData [10:50:33]FM_MakeSignedData [10:50:33]SAM_PROTO_SignData [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 0D 01 02 [10:50:33]Write to MH i2c: E2 08 00 95 0B 80 0D 01 02 00 00 00 00 19 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [10:50:33]RAPDU: 90 00 [10:50:33]wFMCommunicate OK [10:50:33]wFMCommunicate request_size=255 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [10:50:33]Write to MH i2c: E2 02 01 96 0B 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 B8 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 96 0B 00 90 00 15 [10:50:33]RAPDU: 90 00 [10:50:33]wFMCommunicate OK [10:50:33]wFMCommunicate request_size=145 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 0D 02 02 8C 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F8 1A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EC 00 00 35 04 06 00 64 1B 05 0E CE E0 [10:50:33]Write to MH i2c: E2 94 00 97 0B 80 0D 02 02 8C 00 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F8 1A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EC 00 00 35 04 06 00 64 1B 05 0E CE E0 00 00 36 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 03 00 97 0B 00 90 00 16 [10:50:33]RAPDU: 90 00 [10:50:33]wFMCommunicate OK [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 0D 03 02 [10:50:33]Write to MH i2c: E2 08 00 98 0B 80 0D 03 02 00 00 00 00 1E [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 0B 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 0B 00 98 0B 00 84 5B 47 5D 07 33 A6 E8 90 00 6A [10:50:33]RAPDU: 84 5B 47 5D 07 33 A6 E8 90 00 [10:50:33]wFMCommunicate OK [10:50:33]SAM_PROTO_SignData done [10:50:33]FM_MakeSignedData done [10:50:33]CreateOFDProtocolMessage [10:50:33]wFMCommunicate request_size=4 [10:50:33]MH_SAM_APDU [10:50:33]CAPDU: 80 11 00 00 [10:50:33]Write to MH i2c: E2 08 00 99 0B 80 11 00 00 00 00 00 00 1E [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:33]Read from MH i2c: E2 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: E2 17 00 99 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 75 [10:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:50:33]wFMCommunicate OK [10:50:33]CreateOFDProtocolMessage done [10:50:33]OFDSenderStorePacket 60536 [10:50:33]StoreOFDPacket docnum=60536 [10:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 96 01 00 00 D2 5B 8E 01 98 9E 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F8 1A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EC 00 00 35 04 06 00 64 1B 05 0E CE E0 84 5B 47 5D 07 33 A6 E8 [10:50:33]CheckFolder [10:50:33]dirname=/storage/ofd_packets [10:50:33]CheckFolder done [10:50:33]ProducePacketName [10:50:33]name=ofd_packets/00060536 [10:50:33]NVStorageSaveData ofd_packets/00060536 [10:50:33]File name is /storage/ofd_packets/00060536 [10:50:33]Write 436 bytes [10:50:33]NVStorageSaveData done [10:50:33]OFDSenderStorePacket done [10:50:33]KKMCreateOFDPacket done [10:50:33]NVStorageSaveData kkm_last_timestamp [10:50:33]File name is /storage/kkm_last_timestamp [10:50:33]Write 4 bytes [10:50:33]NVStorageSaveData done [10:50:33]ExternCall_PrintAddStr [10:50:33]wPrintStart [10:50:33]Write to MH i2c: 01 00 00 9A 0B A5 [10:50:33]Write i2c OK [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 07 00 [10:50:33]MH_I2C_Read... [10:50:33]Read from MH i2c: 01 07 00 9A 0B 00 00 00 00 00 FF 0F BA [10:50:33]RasterBufferAndPrint [10:50:33]line Счет N : (3)200163 [10:50:33]line ИНН: 02508201610067 [10:50:33]line Контрольно-Кассовый Чек [10:50:34]line ПРОДАЖА [10:50:34]line Товар: 42069942 [10:50:34]line Жев Orbit White Fresh Mint [10:50:34]line 1.000 * 45.00 [10:50:34]line = 45.00 [10:50:34]line НДС 12% НСП 1% [10:50:34]line > о реализуемом товаре [10:50:34]line Товар: 4700000160884 [10:50:34]line Снек Курут индивидуальный [10:50:34]line 1.000 * 15.00 [10:50:34]line = 15.00 [10:50:34]line НДС 12% НСП 1% [10:50:34]line > о реализуемом товаре [10:50:34]line ИТОГО: 60.00 [10:50:34]line НСП 1% : 0.53 [10:50:34]line НДС 12% : 6.37 [10:50:34]line Наличными: 60.00 [10:50:34]line Безнал.: 0.00 [10:50:34]line Место: АЗС № 87 "Партнер Нефть" [10:50:34]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:50:34]line СНО: Общий режим [10:50:34]line Чек 68 27.10.2024 10:50 [10:50:34]line Смена: 532 ФФД: 1.0 [10:50:34]line ЗНМ: 0300000084 [10:50:34]line РНМ: 0000000000091622 [10:50:34]line Версия ККМ: 001 [10:50:34]line ФМ: 0000000000874674 [10:50:34]line ФД: 60536 [10:50:34]line ФПД: 110067211751136 [10:50:34]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105032&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60536&fm=110067211751136&tin=02508201610067®Number=0000000000091622&sum=6000 [10:50:34]line 0 [10:50:34]OFD Sender: Processing packet 60536 [packets to send 30, broken 29] [10:50:34]ProducePacketName [10:50:34]name=ofd_packets/00060536 [10:50:34]OFD Sender: To server: pG, [10:50:34]CommunicateWithHost lk.salyk.kg:30040 [10:50:34]ConnectInit lk.salyk.kg [10:50:34]written 0, free lines is 4095 [10:50:34]Connected sock=10 [10:50: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 36 37 34 96 01 00 00 D2 5B 8E 01 98 9E 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F8 1A 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 78 EC 00 00 35 04 06 00 64 1B 05 0E CE E0 84 5B 47 5D 07 33 A6 E8 [10:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 2C 66 47 00 E3 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 36 37 34 10 04 04 00 78 EC 00 00 F4 03 04 00 E1 C0 1D 67 B6 04 01 00 00 49 CC DD 4A 55 79 5E 7B [10:50:34]CommunicateWithHost err = 0 [10:50:34]CheckOFDResponse [10:50:34]1017 (14) - 77093643461234 [10:50:34]1041 (16) - 0000000000874674 [10:50:34]1040 (4) - 60536 [10:50:34]1012 (4) - 27.10.2024 04:26 [10:50:34]1206 (1) - 0 [10:50:34]OFD Sender: Remove packet 60536 [10:50:34]ProducePacketName [10:50:34]name=ofd_packets/00060536 [10:50:34]NVStorageDeleteData [10:50:34]Write to MH i2c: 01 00 00 C8 0B D3 [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: 01 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: 01 07 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 89 0C 6F [10:50:34]RasterBufferAndPrint [10:50:34]line [10:50:34]line [10:50:34]line [10:50:34]line [10:50:34]line [10:50:34]written 0, free lines is 3214 [10:50:34]MH_Cut [10:50:34]Write to MH i2c: D1 01 00 CF 0B 01 AC [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: D1 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: D1 01 00 [10:50:34]MH_I2C_Read... [10:50:34]Read from MH i2c: D1 01 00 CF 0B 00 AB [10:50:34]Write to MH i2c: 01 00 00 D0 0B DB [10:50:34]Write i2c OK [10:50:34]MH_I2C_Read... [10:50:35]OFD Sender: No OFD packet to send [10:50:35]*** Cut start [10:50:35]*** Partial cut [10:50:35]*** CUTSNS_PIN = 1 [10:50:35]*** CUTSNS_PIN = 0 [10:50:35]*** Brake cut motor [10:50:36]Read from MH i2c: 01 [10:50:36]MH_I2C_Read... [10:50:36]*** Stop cut motor [10:50:36]*** Cut end [10:50:36]Read from MH i2c: 01 07 00 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: 01 07 00 D0 0B 00 00 00 00 00 FF 0F F0 [10:50:36]process_action close_receipt done [10:50:36]requested_data is exist [10:50:36]produce_requested_data [10:50:36]requested_item fm.sn is exist - process it [10:50:36]wFMCommunicate request_size=4 [10:50:36]MH_SAM_APDU [10:50:36]CAPDU: 80 11 00 00 [10:50:36]Write to MH i2c: E2 08 00 D1 0B 80 11 00 00 00 00 00 00 56 [10:50:36]Write i2c OK [10:50:36]MH_I2C_Read... [10:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:36]Read from MH i2c: E2 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 17 00 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 17 00 D1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AD [10:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:50:36]wFMCommunicate OK [10:50:36]requested_item fd.num is exist - process it [10:50:36]SAM_PROTO_GetFieldsCounters [10:50:36]wFMCommunicate request_size=4 [10:50:36]MH_SAM_APDU [10:50:36]CAPDU: 80 13 00 00 [10:50:36]Write to MH i2c: E2 08 00 D2 0B 80 13 00 00 00 00 00 00 59 [10:50:36]Write i2c OK [10:50:36]MH_I2C_Read... [10:50:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:36]Read from MH i2c: E2 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 62 00 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 62 00 D2 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 78 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:50: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 78 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:36]wFMCommunicate OK [10:50:36]SAM_PROTO_GetFieldsCounters done [10:50:36]requested_item shift.num is exist - process it [10:50:36]requested_item shift.opened is exist - process it [10:50:36]req_shift_opened [10:50:36]FM_GetShiftState [10:50:36]SAM_PROTO_GetShiftState [10:50:36]wFMCommunicate request_size=4 [10:50:36]MH_SAM_APDU [10:50:36]CAPDU: 80 13 01 00 [10:50:36]Write to MH i2c: E2 08 00 D3 0B 80 13 01 00 00 00 00 00 5B [10:50:36]Write i2c OK [10:50:36]MH_I2C_Read... [10:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:36]Read from MH i2c: E2 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 0E 00 [10:50:36]MH_I2C_Read... [10:50:36]Read from MH i2c: E2 0E 00 D3 0B 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F7 [10:50:36]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:50:36]wFMCommunicate OK [10:50:36]SAM_PROTO_GetShiftState done [10:50:36]FM_GetShiftState done [10:50:36]req_shift_opened done [10:50:36]requested_item shift.open_date is exist - process it [10:50:36]req_shift_open_date [10:50:36]req_shift_open_date done [10:50:36]produce_requested_data done [10:50:36]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60536,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:50:36]process_action_free close_receipt [10:50:36]json_value_free [10:50:36]json_value_free done [10:50:36]process_json_proto returns [10:50:36]Send response to host [10:50:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60536,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:50:36]free response buf [10:50:36]execute_script done [10:50:36]execute_script returns [10:50:36]free content buf [10:50:36]Sock 9.Close socket [10:50:36]Sock 9.Thread stoped [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:33]accept exits with 7 [10:52:33]New connection [10:52:33]New thread 3067362660 created [10:52:33]Thread 3067219300 joined [10:52:33]Waiting for new connection... [10:52:33] Sock 7.Parse request [10:52:33]Sock 7.Check first char [10:52:33]Sock 7.First char is OK [10:52:33]request: POST /json_proto HTTP/1.0 [10:52:33]Method: POST [10:52:33]URL: /json_proto [10:52:33]Method is POST - this is cgi request [10:52:33]url: /json_proto [10:52:33]query_string will be loaded in cgi processing [10:52:33]execute_cgi json_proto POST (null) [10:52:33]execute_cgi path=json_proto method=POST [10:52:33]POST find Content-Length [10:52:33]Host: 172.17.42.196:8080 [10:52:33]Content-Length: 773 [10:52:33]Content-Type: application/json [10:52:33] [10:52:33]POST finish read [10:52:33]Found Content-Length = 773 [10:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200164", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:33]execute_script... [10:52: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 : (3)200164", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:33]POST & json_proto [10:52:33]process_json_proto [10:52:33]json parsed OK: [10:52:33]protocol is kg_v1.0 [10:52:33]action value=close_receipt [10:52:33]process_action close_receipt [10:52:33]cmd_close_receipt [10:52:33]MH_GetDate [10:52:33]Write to MH i2c: F0 00 00 D4 0B CE [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: F0 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: F0 09 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: F0 09 00 D4 0B 00 72 1B 1E 67 FF C4 6B 64 7B [10:52:33]GetLastDocTimeStamp 1730026232 [10:52:33]current date 1730026354 [10:52:33]FM_GetShiftState [10:52:33]SAM_PROTO_GetShiftState [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 13 01 00 [10:52:33]Write to MH i2c: E2 08 00 D5 0B 80 13 01 00 00 00 00 00 5D [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0E 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0E 00 D5 0B 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F9 [10:52:33]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_GetShiftState done [10:52:33]FM_GetShiftState done [10:52:33]opened in 1729989505 [10:52:33]opened+sec_in_day 1730075905 [10:52:33]quantity*price = 13000 [10:52:33]sum+1 = 13001 [10:52:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 69 27.10.2024 10:52 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60537 ФПД: 172159209869053 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105234&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60537&fm=172159209869053&tin=02508201610067®Number=0000000000091622&sum=13000 0 [10:52:35]StoreToDocumentArchive [10:52:35]shift 532 fd 60537 [10:52:35]save to /storage/0532/doc_00060537 [10:52:35]save last doc name /storage/0532/doc_00060537 to /storage/kkm_last_doc_name [10:52:35]save OK [10:52:35]Clear old archive folders... [10:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:52:35]tlvbuf is B6E0C120 [10:52:35]SAM_PROTO_ClearQueue [10:52:35]wFMCommunicate request_size=4 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 09 00 00 [10:52:35]Write to MH i2c: E2 08 00 E2 0B 80 09 00 00 00 00 00 00 5F [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 E2 0B 00 90 00 61 [10:52:35]RAPDU: 90 00 [10:52:35]wFMCommunicate OK [10:52:35]SAM_PROTO_ClearQueue done [10:52:35]KKMCreateOFDPacket [10:52:35]OFDProtocolAddRootSTLVToBuf [10:52:35]FM_MakeSignedData [10:52:35]FM_MakeSignedData [10:52:35]SAM_PROTO_SignData [10:52:35]wFMCommunicate request_size=4 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 0D 01 02 [10:52:35]Write to MH i2c: E2 08 00 E3 0B 80 0D 01 02 00 00 00 00 67 [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 E3 0B 00 90 00 62 [10:52:35]RAPDU: 90 00 [10:52:35]wFMCommunicate OK [10:52:35]wFMCommunicate request_size=255 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 72 1B 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [10:52:35]Write to MH i2c: E2 02 01 E4 0B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 72 1B 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 DE [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]OFD Sender: No OFD packet to send [10:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 E4 0B 00 90 00 63 [10:52:35]RAPDU: 90 00 [10:52:35]wFMCommunicate OK [10:52:35]wFMCommunicate request_size=41 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EC 00 00 35 04 06 00 9C 93 F0 8C 8E FD [10:52:35]Write to MH i2c: E2 2C 00 E5 0B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EC 00 00 35 04 06 00 9C 93 F0 8C 8E FD 00 00 D8 [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 03 00 E5 0B 00 90 00 64 [10:52:35]RAPDU: 90 00 [10:52:35]wFMCommunicate OK [10:52:35]wFMCommunicate request_size=4 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 0D 03 02 [10:52:35]Write to MH i2c: E2 08 00 E6 0B 80 0D 03 02 00 00 00 00 6C [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 0B 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 0B 00 E6 0B 00 A1 0B 53 85 7E 27 4C 16 90 00 F8 [10:52:35]RAPDU: A1 0B 53 85 7E 27 4C 16 90 00 [10:52:35]wFMCommunicate OK [10:52:35]SAM_PROTO_SignData done [10:52:35]FM_MakeSignedData done [10:52:35]CreateOFDProtocolMessage [10:52:35]wFMCommunicate request_size=4 [10:52:35]MH_SAM_APDU [10:52:35]CAPDU: 80 11 00 00 [10:52:35]Write to MH i2c: E2 08 00 E7 0B 80 11 00 00 00 00 00 00 6C [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:35]Read from MH i2c: E2 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 17 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: E2 17 00 E7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C3 [10:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:52:35]wFMCommunicate OK [10:52:35]CreateOFDProtocolMessage done [10:52:35]OFDSenderStorePacket 60537 [10:52:35]StoreOFDPacket docnum=60537 [10:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 A1 A3 26 01 1E 2D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 72 1B 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EC 00 00 35 04 06 00 9C 93 F0 8C 8E FD A1 0B 53 85 7E 27 4C 16 [10:52:35]CheckFolder [10:52:35]dirname=/storage/ofd_packets [10:52:35]CheckFolder done [10:52:35]ProducePacketName [10:52:35]name=ofd_packets/00060537 [10:52:35]NVStorageSaveData ofd_packets/00060537 [10:52:35]File name is /storage/ofd_packets/00060537 [10:52:35]Write 332 bytes [10:52:35]NVStorageSaveData done [10:52:35]OFDSenderStorePacket done [10:52:35]KKMCreateOFDPacket done [10:52:35]NVStorageSaveData kkm_last_timestamp [10:52:35]File name is /storage/kkm_last_timestamp [10:52:35]Write 4 bytes [10:52:35]NVStorageSaveData done [10:52:35]ExternCall_PrintAddStr [10:52:35]wPrintStart [10:52:35]Write to MH i2c: 01 00 00 E8 0B F3 [10:52:35]Write i2c OK [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: 01 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: 01 07 00 [10:52:35]MH_I2C_Read... [10:52:35]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 FF 0F 08 [10:52:35]RasterBufferAndPrint [10:52:35]line Счет N : (3)200164 [10:52:35]line ИНН: 02508201610067 [10:52:35]line Контрольно-Кассовый Чек [10:52:35]line ПРОДАЖА [10:52:35]line Товар: 2000036220012 [10:52:35]line Кофе Капучино XL(GABB TRADE) [10:52:35]line 1.000 * 130.00 [10:52:35]line = 130.00 [10:52:35]line НДС 12% НСП 1% [10:52:35]line > о реализуемом товаре [10:52:35]line ИТОГО: 130.00 [10:52:35]line НСП 1% : 1.15 [10:52:35]line НДС 12% : 13.80 [10:52:35]line Наличными: 0.00 [10:52:35]line Безнал.: 130.00 [10:52:35]line Место: АЗС № 87 "Партнер Нефть" [10:52:35]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:52:35]line СНО: Общий режим [10:52:35]line Чек 69 27.10.2024 10:52 [10:52:35]line Смена: 532 ФФД: 1.0 [10:52:35]line ЗНМ: 0300000084 [10:52:35]line РНМ: 0000000000091622 [10:52:35]line Версия ККМ: 001 [10:52:35]line Платежная система: Mbank [10:52:35]line ФМ: 0000000000874674 [10:52:35]line ФД: 60537 [10:52:35]line ФПД: 172159209869053 [10:52:35]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105234&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60537&fm=172159209869053&tin=02508201610067®Number=0000000000091622&sum=13000 [10:52:35]line 0 [10:52:35]OFD Sender: Processing packet 60537 [packets to send 30, broken 29] [10:52:35]ProducePacketName [10:52:35]name=ofd_packets/00060537 [10:52:35]OFD Sender: To server: pG, [10:52:35]CommunicateWithHost lk.salyk.kg:30040 [10:52:35]ConnectInit lk.salyk.kg [10:52:35]written 0, free lines is 4095 [10:52:36]Connected sock=10 [10:52: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 36 37 34 2E 01 00 00 A1 A3 26 01 1E 2D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 72 1B 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 79 EC 00 00 35 04 06 00 9C 93 F0 8C 8E FD A1 0B 53 85 7E 27 4C 16 [10:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 E3 A9 47 00 97 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 36 37 34 10 04 04 00 79 EC 00 00 F4 03 04 00 5A C1 1D 67 B6 04 01 00 00 F1 E9 9E FC 4E F6 E9 DC [10:52:36]CommunicateWithHost err = 0 [10:52:36]CheckOFDResponse [10:52:36]1017 (14) - 77093643461234 [10:52:36]1041 (16) - 0000000000874674 [10:52:36]1040 (4) - 60537 [10:52:36]1012 (4) - 27.10.2024 04:28 [10:52:36]1206 (1) - 0 [10:52:36]OFD Sender: Remove packet 60537 [10:52:36]ProducePacketName [10:52:36]name=ofd_packets/00060537 [10:52:36]NVStorageDeleteData [10:52:36]Write to MH i2c: 01 00 00 12 0C 1E [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 07 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: 01 07 00 12 0C 00 00 00 00 00 DF 0C 10 [10:52:36]RasterBufferAndPrint [10:52:36]line [10:52:36]line [10:52:36]line [10:52:36]line [10:52:36]line [10:52:36]written 0, free lines is 3302 [10:52:36]MH_Cut [10:52:36]Write to MH i2c: D1 01 00 19 0C 01 F7 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: D1 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: D1 01 00 [10:52:36]MH_I2C_Read... [10:52:36]Read from MH i2c: D1 01 00 19 0C 00 F6 [10:52:36]Write to MH i2c: 01 00 00 1A 0C 26 [10:52:36]Write i2c OK [10:52:36]MH_I2C_Read... [10:52:36]OFD Sender: No OFD packet to send [10:52:37]*** Cut start [10:52:37]*** Partial cut [10:52:37]*** CUTSNS_PIN = 1 [10:52:37]*** CUTSNS_PIN = 0 [10:52:37]*** Brake cut motor [10:52:37]Read from MH i2c: 01 [10:52:37]MH_I2C_Read... [10:52:37]*** Stop cut motor [10:52:37]*** Cut end [10:52:37]Read from MH i2c: 01 07 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: 01 07 00 1A 0C 00 00 00 00 00 FF 0F 3B [10:52:37]process_action close_receipt done [10:52:37]requested_data is exist [10:52:37]produce_requested_data [10:52:37]requested_item fm.sn is exist - process it [10:52:37]wFMCommunicate request_size=4 [10:52:37]MH_SAM_APDU [10:52:37]CAPDU: 80 11 00 00 [10:52:37]Write to MH i2c: E2 08 00 1B 0C 80 11 00 00 00 00 00 00 A1 [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:37]Read from MH i2c: E2 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 17 00 [10:52:37]MH_I2C_Read... [10:52:37]Read from MH i2c: E2 17 00 1B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F8 [10:52:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:52:37]wFMCommunicate OK [10:52:37]requested_item fd.num is exist - process it [10:52:37]SAM_PROTO_GetFieldsCounters [10:52:37]wFMCommunicate request_size=4 [10:52:37]MH_SAM_APDU [10:52:37]CAPDU: 80 13 00 00 [10:52:37]Write to MH i2c: E2 08 00 1C 0C 80 13 00 00 00 00 00 00 A4 [10:52:37]Write i2c OK [10:52:37]MH_I2C_Read... [10:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:38]Read from MH i2c: E2 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 62 00 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 62 00 1C 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 79 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [10:52: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 79 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:38]wFMCommunicate OK [10:52:38]SAM_PROTO_GetFieldsCounters done [10:52:38]requested_item shift.num is exist - process it [10:52:38]requested_item shift.opened is exist - process it [10:52:38]req_shift_opened [10:52:38]FM_GetShiftState [10:52:38]SAM_PROTO_GetShiftState [10:52:38]wFMCommunicate request_size=4 [10:52:38]MH_SAM_APDU [10:52:38]CAPDU: 80 13 01 00 [10:52:38]Write to MH i2c: E2 08 00 1D 0C 80 13 01 00 00 00 00 00 A6 [10:52:38]Write i2c OK [10:52:38]MH_I2C_Read... [10:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:38]Read from MH i2c: E2 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 0E 00 [10:52:38]MH_I2C_Read... [10:52:38]Read from MH i2c: E2 0E 00 1D 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 42 [10:52:38]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:52:38]wFMCommunicate OK [10:52:38]SAM_PROTO_GetShiftState done [10:52:38]FM_GetShiftState done [10:52:38]req_shift_opened done [10:52:38]requested_item shift.open_date is exist - process it [10:52:38]req_shift_open_date [10:52:38]req_shift_open_date done [10:52:38]produce_requested_data done [10:52:38]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60537,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:52:38]process_action_free close_receipt [10:52:38]json_value_free [10:52:38]json_value_free done [10:52:38]process_json_proto returns [10:52:38]Send response to host [10:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60537,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:52:38]free response buf [10:52:38]execute_script done [10:52:38]execute_script returns [10:52:38]free content buf [10:52:38]Sock 7.Close socket [10:52:38]Sock 7.Thread stoped [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:14]accept exits with 9 [10:56:14]New connection [10:56:14]New thread 3067219300 created [10:56:14]Thread 3067362660 joined [10:56:14]Waiting for new connection... [10:56:14] Sock 9.Parse request [10:56:14]Sock 9.Check first char [10:56:14]Sock 9.First char is OK [10:56:14]request: POST /json_proto HTTP/1.0 [10:56:14]Method: POST [10:56:14]URL: /json_proto [10:56:14]Method is POST - this is cgi request [10:56:14]url: /json_proto [10:56:14]query_string will be loaded in cgi processing [10:56:14]execute_cgi json_proto POST (null) [10:56:14]execute_cgi path=json_proto method=POST [10:56:14]POST find Content-Length [10:56:14]Host: 172.17.42.196:8080 [10:56:14]Content-Length: 621 [10:56:14]Content-Type: application/json [10:56:14] [10:56:14]POST finish read [10:56:14]Found Content-Length = 621 [10:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200165", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:14]execute_script... [10:56:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200165", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:14]POST & json_proto [10:56:14]process_json_proto [10:56:14]json parsed OK: [10:56:14]protocol is kg_v1.0 [10:56:14]action value=close_receipt [10:56:14]process_action close_receipt [10:56:14]cmd_close_receipt [10:56:14]MH_GetDate [10:56:14]Write to MH i2c: F0 00 00 1E 0C 19 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: F0 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: F0 09 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: F0 09 00 1E 0C 00 4F 1C 1E 67 FF C4 6B 64 A4 [10:56:14]GetLastDocTimeStamp 1730026354 [10:56:14]current date 1730026575 [10:56:14]FM_GetShiftState [10:56:14]SAM_PROTO_GetShiftState [10:56:14]wFMCommunicate request_size=4 [10:56:14]MH_SAM_APDU [10:56:14]CAPDU: 80 13 01 00 [10:56:14]Write to MH i2c: E2 08 00 1F 0C 80 13 01 00 00 00 00 00 A8 [10:56:14]Write i2c OK [10:56:14]MH_I2C_Read... [10:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:14]Read from MH i2c: E2 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 0E 00 [10:56:14]MH_I2C_Read... [10:56:14]Read from MH i2c: E2 0E 00 1F 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 44 [10:56:14]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:56:14]wFMCommunicate OK [10:56:14]SAM_PROTO_GetShiftState done [10:56:14]FM_GetShiftState done [10:56:14]opened in 1729989505 [10:56:14]opened+sec_in_day 1730075905 [10:56:14]quantity*price = 14400 [10:56:14]sum+1 = 14401 [10:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 70 27.10.2024 10:56 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60538 ФПД: 4298716021179 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105615&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60538&fm=4298716021179&tin=02508201610067®Number=0000000000091622&sum=14400 0 [10:56:16]StoreToDocumentArchive [10:56:16]shift 532 fd 60538 [10:56:16]save to /storage/0532/doc_00060538 [10:56:16]save last doc name /storage/0532/doc_00060538 to /storage/kkm_last_doc_name [10:56:16]save OK [10:56:16]Clear old archive folders... [10:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:56:16]tlvbuf is 001F1D50 [10:56:16]SAM_PROTO_ClearQueue [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 09 00 00 [10:56:16]Write to MH i2c: E2 08 00 2C 0C 80 09 00 00 00 00 00 00 AA [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 2C 0C 00 90 00 AC [10:56:16]RAPDU: 90 00 [10:56:16]wFMCommunicate OK [10:56:16]SAM_PROTO_ClearQueue done [10:56:16]KKMCreateOFDPacket [10:56:16]OFDProtocolAddRootSTLVToBuf [10:56:16]FM_MakeSignedData [10:56:16]FM_MakeSignedData [10:56:16]SAM_PROTO_SignData [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 0D 01 02 [10:56:16]Write to MH i2c: E2 08 00 2D 0C 80 0D 01 02 00 00 00 00 B2 [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 2D 0C 00 90 00 AD [10:56:16]RAPDU: 90 00 [10:56:16]wFMCommunicate OK [10:56:16]wFMCommunicate request_size=255 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 46 00 00 00 F4 03 04 00 4F 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 [10:56:16]Write to MH i2c: E2 02 01 2E 0C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 46 00 00 00 F4 03 04 00 4F 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 00 00 63 [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 2E 0C 00 90 00 AE [10:56:16]RAPDU: 90 00 [10:56:16]wFMCommunicate OK [10:56:16]wFMCommunicate request_size=32 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EC 00 00 35 04 06 00 03 E8 DF 71 01 BB [10:56:16]Write to MH i2c: E2 23 00 2F 0C 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EC 00 00 35 04 06 00 03 E8 DF 71 01 BB 00 00 73 [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 03 00 2F 0C 00 90 00 AF [10:56:16]RAPDU: 90 00 [10:56:16]wFMCommunicate OK [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 0D 03 02 [10:56:16]Write to MH i2c: E2 08 00 30 0C 80 0D 03 02 00 00 00 00 B7 [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 0B 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 0B 00 30 0C 00 CE E3 3F 40 FD 1E 04 64 90 00 6B [10:56:16]RAPDU: CE E3 3F 40 FD 1E 04 64 90 00 [10:56:16]wFMCommunicate OK [10:56:16]SAM_PROTO_SignData done [10:56:16]FM_MakeSignedData done [10:56:16]CreateOFDProtocolMessage [10:56:16]wFMCommunicate request_size=4 [10:56:16]MH_SAM_APDU [10:56:16]CAPDU: 80 11 00 00 [10:56:16]Write to MH i2c: E2 08 00 31 0C 80 11 00 00 00 00 00 00 B7 [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:16]Read from MH i2c: E2 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 17 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: E2 17 00 31 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0E [10:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:56:16]wFMCommunicate OK [10:56:16]CreateOFDProtocolMessage done [10:56:16]OFDSenderStorePacket 60538 [10:56:16]StoreOFDPacket docnum=60538 [10:56:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 25 01 00 00 F6 A0 1D 01 BF B3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 46 00 00 00 F4 03 04 00 4F 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EC 00 00 35 04 06 00 03 E8 DF 71 01 BB CE E3 3F 40 FD 1E 04 64 [10:56:16]CheckFolder [10:56:16]dirname=/storage/ofd_packets [10:56:16]CheckFolder done [10:56:16]ProducePacketName [10:56:16]name=ofd_packets/00060538 [10:56:16]NVStorageSaveData ofd_packets/00060538 [10:56:16]File name is /storage/ofd_packets/00060538 [10:56:16]Write 323 bytes [10:56:16]NVStorageSaveData done [10:56:16]OFDSenderStorePacket done [10:56:16]KKMCreateOFDPacket done [10:56:16]NVStorageSaveData kkm_last_timestamp [10:56:16]File name is /storage/kkm_last_timestamp [10:56:16]Write 4 bytes [10:56:16]NVStorageSaveData done [10:56:16]ExternCall_PrintAddStr [10:56:16]wPrintStart [10:56:16]Write to MH i2c: 01 00 00 32 0C 3E [10:56:16]Write i2c OK [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: 01 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: 01 07 00 [10:56:16]MH_I2C_Read... [10:56:16]Read from MH i2c: 01 07 00 32 0C 00 00 00 00 00 FF 0F 53 [10:56:16]RasterBufferAndPrint [10:56:16]line Счет N : (3)200165 [10:56:16]line ИНН: 02508201610067 [10:56:16]line Контрольно-Кассовый Чек [10:56:16]line ПРОДАЖА [10:56:16]line Товар: 48743570 [10:56:16]line Сигареты Winston XStyle Blue [10:56:16]line 1.000 * 144.00 [10:56:16]line = 144.00 [10:56:16]line НДС 12% НСП 1% [10:56:16]line > о реализуемом товаре [10:56:16]line ИТОГО: 144.00 [10:56:16]line НСП 1% : 1.27 [10:56:16]line НДС 12% : 15.29 [10:56:16]line Наличными: 144.00 [10:56:16]line Безнал.: 0.00 [10:56:16]line Место: АЗС № 87 "Партнер Нефть" [10:56:16]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:56:16]line СНО: Общий режим [10:56:16]line Чек 70 27.10.2024 10:56 [10:56:16]line Смена: 532 ФФД: 1.0 [10:56:16]line ЗНМ: 0300000084 [10:56:16]line РНМ: 0000000000091622 [10:56:16]line Версия ККМ: 001 [10:56:16]line ФМ: 0000000000874674 [10:56:16]line ФД: 60538 [10:56:16]line ФПД: 4298716021179 [10:56:16]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105615&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60538&fm=4298716021179&tin=02508201610067®Number=0000000000091622&sum=14400 [10:56:16]OFD Sender: Processing packet 60538 [packets to send 30, broken 29] [10:56:16]ProducePacketName [10:56:16]name=ofd_packets/00060538 [10:56:16]OFD Sender: To server: pG, [10:56:16]CommunicateWithHost lk.salyk.kg:30040 [10:56:16]ConnectInit lk.salyk.kg [10:56:16]line 0 [10:56:16]written 0, free lines is 4095 [10:56:17]Connected sock=10 [10:56: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 36 37 34 25 01 00 00 F6 A0 1D 01 BF B3 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 46 00 00 00 F4 03 04 00 4F 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7A EC 00 00 35 04 06 00 03 E8 DF 71 01 BB CE E3 3F 40 FD 1E 04 64 [10:56:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 D1 B9 47 00 4F 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 36 37 34 10 04 04 00 7A EC 00 00 F4 03 04 00 37 C2 1D 67 B6 04 01 00 00 5C 6B 79 4A E8 DC 9D 62 [10:56:17]CommunicateWithHost err = 0 [10:56:17]CheckOFDResponse [10:56:17]1017 (14) - 77093643461234 [10:56:17]1041 (16) - 0000000000874674 [10:56:17]1040 (4) - 60538 [10:56:17]1012 (4) - 27.10.2024 04:31 [10:56:17]1206 (1) - 0 [10:56:17]OFD Sender: Remove packet 60538 [10:56:17]ProducePacketName [10:56:17]name=ofd_packets/00060538 [10:56:17]NVStorageDeleteData [10:56:17]Write to MH i2c: 01 00 00 5A 0C 66 [10:56:17]Write i2c OK [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: 01 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: 01 07 00 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: 01 07 00 5A 0C 00 00 00 00 00 E8 0C 61 [10:56:17]RasterBufferAndPrint [10:56:17]line [10:56:17]line [10:56:17]line [10:56:17]line [10:56:17]line [10:56:17]written 0, free lines is 3310 [10:56:17]MH_Cut [10:56:17]Write to MH i2c: D1 01 00 61 0C 01 3F [10:56:17]Write i2c OK [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: D1 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: D1 01 00 [10:56:17]MH_I2C_Read... [10:56:17]Read from MH i2c: D1 01 00 61 0C 00 3E [10:56:17]Write to MH i2c: 01 00 00 62 0C 6E [10:56:17]Write i2c OK [10:56:17]MH_I2C_Read... [10:56:17]OFD Sender: No OFD packet to send [10:56:18]*** Cut start [10:56:18]*** Partial cut [10:56:18]*** CUTSNS_PIN = 1 [10:56:18]*** CUTSNS_PIN = 0 [10:56:18]*** Brake cut motor [10:56:18]Read from MH i2c: 01 [10:56:18]MH_I2C_Read... [10:56:18]*** Stop cut motor [10:56:18]*** Cut end [10:56:18]Read from MH i2c: 01 07 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: 01 07 00 62 0C 00 00 00 00 00 FF 0F 83 [10:56:18]process_action close_receipt done [10:56:18]requested_data is exist [10:56:18]produce_requested_data [10:56:18]requested_item fm.sn is exist - process it [10:56:18]wFMCommunicate request_size=4 [10:56:18]MH_SAM_APDU [10:56:18]CAPDU: 80 11 00 00 [10:56:18]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:18]Read from MH i2c: E2 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: E2 17 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 40 [10:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:56:18]wFMCommunicate OK [10:56:18]requested_item fd.num is exist - process it [10:56:18]SAM_PROTO_GetFieldsCounters [10:56:18]wFMCommunicate request_size=4 [10:56:18]MH_SAM_APDU [10:56:18]CAPDU: 80 13 00 00 [10:56:18]Write to MH i2c: E2 08 00 64 0C 80 13 00 00 00 00 00 00 EC [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:18]Read from MH i2c: E2 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: E2 62 00 [10:56:18]MH_I2C_Read... [10:56:18]Read from MH i2c: E2 62 00 64 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:56: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7A EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:18]wFMCommunicate OK [10:56:18]SAM_PROTO_GetFieldsCounters done [10:56:18]requested_item shift.num is exist - process it [10:56:18]requested_item shift.opened is exist - process it [10:56:18]req_shift_opened [10:56:18]FM_GetShiftState [10:56:18]SAM_PROTO_GetShiftState [10:56:18]wFMCommunicate request_size=4 [10:56:18]MH_SAM_APDU [10:56:18]CAPDU: 80 13 01 00 [10:56:18]Write to MH i2c: E2 08 00 65 0C 80 13 01 00 00 00 00 00 EE [10:56:18]Write i2c OK [10:56:18]MH_I2C_Read... [10:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:19]Read from MH i2c: E2 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 0E 00 [10:56:19]MH_I2C_Read... [10:56:19]Read from MH i2c: E2 0E 00 65 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 8A [10:56:19]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:56:19]wFMCommunicate OK [10:56:19]SAM_PROTO_GetShiftState done [10:56:19]FM_GetShiftState done [10:56:19]req_shift_opened done [10:56:19]requested_item shift.open_date is exist - process it [10:56:19]req_shift_open_date [10:56:19]req_shift_open_date done [10:56:19]produce_requested_data done [10:56:19]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60538,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:56:19]process_action_free close_receipt [10:56:19]json_value_free [10:56:19]json_value_free done [10:56:19]process_json_proto returns [10:56:19]Send response to host [10:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60538,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:56:19]free response buf [10:56:19]execute_script done [10:56:19]execute_script returns [10:56:19]free content buf [10:56:19]Sock 9.Close socket [10:56:19]Sock 9.Thread stoped [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:43]accept exits with 7 [10:56:43]New connection [10:56:43]New thread 3067362660 created [10:56:43]Thread 3067219300 joined [10:56:43]Waiting for new connection... [10:56:43] Sock 7.Parse request [10:56:43]Sock 7.Check first char [10:56:43]Sock 7.First char is OK [10:56:43]request: POST /json_proto HTTP/1.0 [10:56:43]Method: POST [10:56:43]URL: /json_proto [10:56:43]Method is POST - this is cgi request [10:56:43]url: /json_proto [10:56:43]query_string will be loaded in cgi processing [10:56:43]execute_cgi json_proto POST (null) [10:56:43]execute_cgi path=json_proto method=POST [10:56:43]POST find Content-Length [10:56:43]Host: 172.17.42.196:8080 [10:56:43]Content-Length: 631 [10:56:43]Content-Type: application/json [10:56:43] [10:56:43]POST finish read [10:56:43]Found Content-Length = 631 [10:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200166", "tax_sys" : 0, "items" : [ { "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:43]execute_script... [10:56:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200166", "tax_sys" : 0, "items" : [ { "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:43]POST & json_proto [10:56:43]process_json_proto [10:56:43]json parsed OK: [10:56:43]protocol is kg_v1.0 [10:56:43]action value=close_receipt [10:56:43]process_action close_receipt [10:56:43]cmd_close_receipt [10:56:43]MH_GetDate [10:56:43]Write to MH i2c: F0 00 00 66 0C 61 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 09 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 09 00 66 0C 00 6C 1C 1E 67 FF C4 6B 64 09 [10:56:43]GetLastDocTimeStamp 1730026575 [10:56:43]current date 1730026604 [10:56:43]FM_GetShiftState [10:56:43]SAM_PROTO_GetShiftState [10:56:43]wFMCommunicate request_size=4 [10:56:43]MH_SAM_APDU [10:56:43]CAPDU: 80 13 01 00 [10:56:43]Write to MH i2c: E2 08 00 67 0C 80 13 01 00 00 00 00 00 F0 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:43]Read from MH i2c: E2 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 0E 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 0E 00 67 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 8C [10:56:43]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:56:43]wFMCommunicate OK [10:56:43]SAM_PROTO_GetShiftState done [10:56:43]FM_GetShiftState done [10:56:43]opened in 1729989505 [10:56:43]opened+sec_in_day 1730075905 [10:56:43]quantity*price = 21000 [10:56:43]sum+1 = 21001 [10:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 71 27.10.2024 10:56 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60539 ФПД: 2504823148107 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105644&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60539&fm=2504823148107&tin=02508201610067®Number=0000000000091622&sum=21000 0 [10:56:45]StoreToDocumentArchive [10:56:45]shift 532 fd 60539 [10:56:45]save to /storage/0532/doc_00060539 [10:56:45]save last doc name /storage/0532/doc_00060539 to /storage/kkm_last_doc_name [10:56:45]save OK [10:56:45]Clear old archive folders... [10:56:45]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:56:45]tlvbuf is 001F8560 [10:56:45]SAM_PROTO_ClearQueue [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 09 00 00 [10:56:45]Write to MH i2c: E2 08 00 74 0C 80 09 00 00 00 00 00 00 F2 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [10:56:45]RAPDU: 90 00 [10:56:45]wFMCommunicate OK [10:56:45]SAM_PROTO_ClearQueue done [10:56:45]KKMCreateOFDPacket [10:56:45]OFDProtocolAddRootSTLVToBuf [10:56:45]FM_MakeSignedData [10:56:45]FM_MakeSignedData [10:56:45]SAM_PROTO_SignData [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 0D 01 02 [10:56:45]Write to MH i2c: E2 08 00 75 0C 80 0D 01 02 00 00 00 00 FA [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [10:56:45]RAPDU: 90 00 [10:56:45]wFMCommunicate OK [10:56:45]wFMCommunicate request_size=255 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6C 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [10:56:45]Write to MH i2c: E2 02 01 76 0C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6C 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 F6 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [10:56:45]RAPDU: 90 00 [10:56:45]wFMCommunicate OK [10:56:45]wFMCommunicate request_size=34 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EC 00 00 35 04 06 00 02 47 33 18 0E 4B [10:56:45]Write to MH i2c: E2 25 00 77 0C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EC 00 00 35 04 06 00 02 47 33 18 0E 4B 00 00 16 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [10:56:45]RAPDU: 90 00 [10:56:45]wFMCommunicate OK [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 0D 03 02 [10:56:45]Write to MH i2c: E2 08 00 78 0C 80 0D 03 02 00 00 00 00 FF [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0B 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0B 00 78 0C 00 E1 0D DB C1 30 31 F7 83 90 00 65 [10:56:45]RAPDU: E1 0D DB C1 30 31 F7 83 90 00 [10:56:45]wFMCommunicate OK [10:56:45]SAM_PROTO_SignData done [10:56:45]FM_MakeSignedData done [10:56:45]CreateOFDProtocolMessage [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 11 00 00 [10:56:45]Write to MH i2c: E2 08 00 79 0C 80 11 00 00 00 00 00 00 FF [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 17 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 17 00 79 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 56 [10:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:56:45]wFMCommunicate OK [10:56:45]CreateOFDProtocolMessage done [10:56:45]OFDSenderStorePacket 60539 [10:56:45]StoreOFDPacket docnum=60539 [10:56:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 CE 74 1F 01 AB 30 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6C 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EC 00 00 35 04 06 00 02 47 33 18 0E 4B E1 0D DB C1 30 31 F7 83 [10:56:45]CheckFolder [10:56:45]dirname=/storage/ofd_packets [10:56:45]CheckFolder done [10:56:45]ProducePacketName [10:56:45]name=ofd_packets/00060539 [10:56:45]NVStorageSaveData ofd_packets/00060539 [10:56:45]File name is /storage/ofd_packets/00060539 [10:56:45]Write 325 bytes [10:56:45]NVStorageSaveData done [10:56:45]OFDSenderStorePacket done [10:56:45]KKMCreateOFDPacket done [10:56:45]NVStorageSaveData kkm_last_timestamp [10:56:45]File name is /storage/kkm_last_timestamp [10:56:45]Write 4 bytes [10:56:45]NVStorageSaveData done [10:56:45]ExternCall_PrintAddStr [10:56:45]wPrintStart [10:56:45]Write to MH i2c: 01 00 00 7A 0C 86 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 7A 0C 00 00 00 00 00 FF 0F 9B [10:56:45]RasterBufferAndPrint [10:56:45]line Счет N : (3)200166 [10:56:45]line ИНН: 02508201610067 [10:56:45]line Контрольно-Кассовый Чек [10:56:45]line ПРОДАЖА [10:56:45]line Товар: 4780022460216 [10:56:45]line Антифриз Yumiko red 1кг [10:56:45]line 1.000 * 210.00 [10:56:45]line = 210.00 [10:56:45]line НДС 12% НСП 1% [10:56:45]line > о реализуемом товаре [10:56:45]line ИТОГО: 210.00 [10:56:45]line НСП 1% : 1.86 [10:56:45]line НДС 12% : 22.30 [10:56:45]line Наличными: 210.00 [10:56:45]line Безнал.: 0.00 [10:56:45]line Место: АЗС № 87 "Партнер Нефть" [10:56:45]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [10:56:45]line СНО: Общий режим [10:56:45]line Чек 71 27.10.2024 10:56 [10:56:45]line Смена: 532 ФФД: 1.0 [10:56:45]line ЗНМ: 0300000084 [10:56:45]line РНМ: 0000000000091622 [10:56:45]line Версия ККМ: 001 [10:56:45]line ФМ: 0000000000874674 [10:56:45]line ФД: 60539 [10:56:45]line ФПД: 2504823148107 [10:56:45]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105644&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60539&fm=2504823148107&tin=02508201610067®Number=0000000000091622&sum=21000 [10:56:45]OFD Sender: Processing packet 60539 [packets to send 30, broken 29] [10:56:45]ProducePacketName [10:56:45]name=ofd_packets/00060539 [10:56:45]OFD Sender: To server: pG, [10:56:45]CommunicateWithHost lk.salyk.kg:30040 [10:56:45]ConnectInit lk.salyk.kg [10:56:45]line 0 [10:56:45]written 0, free lines is 4095 [10:56:46]Connected sock=10 [10:56: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 36 37 34 27 01 00 00 CE 74 1F 01 AB 30 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 6C 1C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7B EC 00 00 35 04 06 00 02 47 33 18 0E 4B E1 0D DB C1 30 31 F7 83 [10:56:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 2B 83 47 00 0F 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 36 37 34 10 04 04 00 7B EC 00 00 F4 03 04 00 54 C2 1D 67 B6 04 01 00 00 04 C7 C9 53 D7 6E 85 64 [10:56:46]CommunicateWithHost err = 0 [10:56:46]CheckOFDResponse [10:56:46]1017 (14) - 77093643461234 [10:56:46]1041 (16) - 0000000000874674 [10:56:46]1040 (4) - 60539 [10:56:46]1012 (4) - 27.10.2024 04:32 [10:56:46]1206 (1) - 0 [10:56:46]OFD Sender: Remove packet 60539 [10:56:46]ProducePacketName [10:56:46]name=ofd_packets/00060539 [10:56:46]NVStorageDeleteData [10:56:46]Write to MH i2c: 01 00 00 A2 0C AE [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 07 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 07 00 A2 0C 00 00 00 00 00 01 0D C3 [10:56:46]RasterBufferAndPrint [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]written 0, free lines is 3336 [10:56:46]MH_Cut [10:56:46]Write to MH i2c: D1 01 00 A9 0C 01 87 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 01 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 01 00 A9 0C 00 86 [10:56:46]Write to MH i2c: 01 00 00 AA 0C B6 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]OFD Sender: No OFD packet to send [10:56:47]*** Cut start [10:56:47]*** Partial cut [10:56:47]*** CUTSNS_PIN = 1 [10:56:47]*** CUTSNS_PIN = 0 [10:56:47]*** Brake cut motor [10:56:47]Read from MH i2c: 01 [10:56:47]MH_I2C_Read... [10:56:47]*** Stop cut motor [10:56:47]*** Cut end [10:56:47]Read from MH i2c: 01 07 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 FF 0F CB [10:56:47]process_action close_receipt done [10:56:47]requested_data is exist [10:56:47]produce_requested_data [10:56:47]requested_item fm.sn is exist - process it [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 11 00 00 [10:56:47]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 88 [10:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [10:56:47]wFMCommunicate OK [10:56:47]requested_item fd.num is exist - process it [10:56:47]SAM_PROTO_GetFieldsCounters [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 00 00 [10:56:47]Write to MH i2c: E2 08 00 AC 0C 80 13 00 00 00 00 00 00 34 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 AC 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [10:56: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:47]wFMCommunicate OK [10:56:47]SAM_PROTO_GetFieldsCounters done [10:56:47]requested_item shift.num is exist - process it [10:56:47]requested_item shift.opened is exist - process it [10:56:47]req_shift_opened [10:56:47]FM_GetShiftState [10:56:47]SAM_PROTO_GetShiftState [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 01 00 [10:56:47]Write to MH i2c: E2 08 00 AD 0C 80 13 01 00 00 00 00 00 36 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:48]Read from MH i2c: E2 [10:56:48]MH_I2C_Read... [10:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:48]Read from MH i2c: E2 0E 00 [10:56:48]MH_I2C_Read... [10:56:48]Read from MH i2c: E2 0E 00 AD 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D2 [10:56:48]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [10:56:48]wFMCommunicate OK [10:56:48]SAM_PROTO_GetShiftState done [10:56:48]FM_GetShiftState done [10:56:48]req_shift_opened done [10:56:48]requested_item shift.open_date is exist - process it [10:56:48]req_shift_open_date [10:56:48]req_shift_open_date done [10:56:48]produce_requested_data done [10:56:48]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60539,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [10:56:48]process_action_free close_receipt [10:56:48]json_value_free [10:56:48]json_value_free done [10:56:48]process_json_proto returns [10:56:48]Send response to host [10:56:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60539,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [10:56:48]free response buf [10:56:48]execute_script done [10:56:48]execute_script returns [10:56:48]free content buf [10:56:48]Sock 7.Close socket [10:56:48]Sock 7.Thread stoped [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:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:57]OFD Sender: No OFD packet to send [11:03:02]OFD Sender: No OFD packet to send [11:03:07]OFD Sender: No OFD packet to send [11:03:12]OFD Sender: No OFD packet to send [11:03:17]OFD Sender: No OFD packet to send [11:03:21]accept exits with 9 [11:03:21]New connection [11:03:21]New thread 3067219300 created [11:03:21]Thread 3067362660 joined [11:03:21]Waiting for new connection... [11:03:21] Sock 9.Parse request [11:03:21]Sock 9.Check first char [11:03:21]Sock 9.First char is OK [11:03:21]request: POST /json_proto HTTP/1.0 [11:03:21]Method: POST [11:03:21]URL: /json_proto [11:03:21]Method is POST - this is cgi request [11:03:21]url: /json_proto [11:03:21]query_string will be loaded in cgi processing [11:03:21]execute_cgi json_proto POST (null) [11:03:21]execute_cgi path=json_proto method=POST [11:03:21]POST find Content-Length [11:03:21]Host: 172.17.42.196:8080 [11:03:21]Content-Length: 655 [11:03:21]Content-Type: application/json [11:03:21] [11:03:21]POST finish read [11:03:21]Found Content-Length = 655 [11:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200167", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:21]execute_script... [11: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 : (3)200167", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:21]POST & json_proto [11:03:21]process_json_proto [11:03:21]json parsed OK: [11:03:21]protocol is kg_v1.0 [11:03:21]action value=close_receipt [11:03:21]process_action close_receipt [11:03:21]cmd_close_receipt [11:03:21]MH_GetDate [11:03:21]Write to MH i2c: F0 00 00 AE 0C A9 [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: F0 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: F0 09 00 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: F0 09 00 AE 0C 00 FA 1D 1E 67 FF C4 6B 64 E0 [11:03:21]GetLastDocTimeStamp 1730026604 [11:03:21]current date 1730027002 [11:03:21]FM_GetShiftState [11:03:21]SAM_PROTO_GetShiftState [11:03:21]wFMCommunicate request_size=4 [11:03:21]MH_SAM_APDU [11:03:21]CAPDU: 80 13 01 00 [11:03:21]Write to MH i2c: E2 08 00 AF 0C 80 13 01 00 00 00 00 00 38 [11:03:21]Write i2c OK [11:03:21]MH_I2C_Read... [11:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:21]Read from MH i2c: E2 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 0E 00 [11:03:21]MH_I2C_Read... [11:03:21]Read from MH i2c: E2 0E 00 AF 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D4 [11:03:21]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:03:21]wFMCommunicate OK [11:03:21]SAM_PROTO_GetShiftState done [11:03:21]FM_GetShiftState done [11:03:21]opened in 1729989505 [11:03:21]opened+sec_in_day 1730075905 [11:03:21]quantity*price = 6900 [11:03:21]sum+1 = 6901 [11:03:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 72 27.10.2024 11:03 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60540 ФПД: 105729948522037 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110322&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60540&fm=105729948522037&tin=02508201610067®Number=0000000000091622&sum=6900 0 [11:03:23]StoreToDocumentArchive [11:03:23]shift 532 fd 60540 [11:03:23]save to /storage/0532/doc_00060540 [11:03:23]save last doc name /storage/0532/doc_00060540 to /storage/kkm_last_doc_name [11:03:23]save OK [11:03:23]Clear old archive folders... [11:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:03:23]tlvbuf is 001AC540 [11:03:23]SAM_PROTO_ClearQueue [11:03:23]wFMCommunicate request_size=4 [11:03:23]MH_SAM_APDU [11:03:23]CAPDU: 80 09 00 00 [11:03:23]Write to MH i2c: E2 08 00 BC 0C 80 09 00 00 00 00 00 00 3A [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:23]Read from MH i2c: E2 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [11:03:23]RAPDU: 90 00 [11:03:23]wFMCommunicate OK [11:03:23]SAM_PROTO_ClearQueue done [11:03:23]KKMCreateOFDPacket [11:03:23]OFDProtocolAddRootSTLVToBuf [11:03:23]FM_MakeSignedData [11:03:23]FM_MakeSignedData [11:03:23]SAM_PROTO_SignData [11:03:23]wFMCommunicate request_size=4 [11:03:23]MH_SAM_APDU [11:03:23]CAPDU: 80 0D 01 02 [11:03:23]Write to MH i2c: E2 08 00 BD 0C 80 0D 01 02 00 00 00 00 42 [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:23]Read from MH i2c: E2 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [11:03:23]RAPDU: 90 00 [11:03:23]wFMCommunicate OK [11:03:23]wFMCommunicate request_size=255 [11:03:23]MH_SAM_APDU [11:03:23]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FA 1D 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:03:23]Write to MH i2c: E2 02 01 BE 0C 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FA 1D 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4B [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:23]Read from MH i2c: E2 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [11:03:23]RAPDU: 90 00 [11:03:23]wFMCommunicate OK [11:03:23]wFMCommunicate request_size=53 [11:03:23]MH_SAM_APDU [11:03:23]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EC 00 00 35 04 06 00 60 29 2C 06 16 35 [11:03:23]Write to MH i2c: E2 38 00 BF 0C 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EC 00 00 35 04 06 00 60 29 2C 06 16 35 00 00 A7 [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:23]Read from MH i2c: E2 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [11:03:23]RAPDU: 90 00 [11:03:23]wFMCommunicate OK [11:03:23]wFMCommunicate request_size=4 [11:03:23]MH_SAM_APDU [11:03:23]CAPDU: 80 0D 03 02 [11:03:23]Write to MH i2c: E2 08 00 C0 0C 80 0D 03 02 00 00 00 00 47 [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:23]Read from MH i2c: E2 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 0B 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 0B 00 C0 0C 00 01 7D 21 40 B9 02 4C 38 90 00 66 [11:03:23]RAPDU: 01 7D 21 40 B9 02 4C 38 90 00 [11:03:23]wFMCommunicate OK [11:03:23]SAM_PROTO_SignData done [11:03:23]FM_MakeSignedData done [11:03:23]CreateOFDProtocolMessage [11:03:23]wFMCommunicate request_size=4 [11:03:23]MH_SAM_APDU [11:03:23]CAPDU: 80 11 00 00 [11:03:23]Write to MH i2c: E2 08 00 C1 0C 80 11 00 00 00 00 00 00 47 [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:23]Read from MH i2c: E2 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 17 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: E2 17 00 C1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9E [11:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:03:23]wFMCommunicate OK [11:03:23]CreateOFDProtocolMessage done [11:03:23]OFDSenderStorePacket 60540 [11:03:23]StoreOFDPacket docnum=60540 [11:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 3A 01 00 00 65 9E 32 01 1C 29 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FA 1D 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EC 00 00 35 04 06 00 60 29 2C 06 16 35 01 7D 21 40 B9 02 4C 38 [11:03:23]CheckFolder [11:03:23]dirname=/storage/ofd_packets [11:03:23]CheckFolder done [11:03:23]ProducePacketName [11:03:23]name=ofd_packets/00060540 [11:03:23]NVStorageSaveData ofd_packets/00060540 [11:03:23]File name is /storage/ofd_packets/00060540 [11:03:23]Write 344 bytes [11:03:23]NVStorageSaveData done [11:03:23]OFDSenderStorePacket done [11:03:23]KKMCreateOFDPacket done [11:03:23]NVStorageSaveData kkm_last_timestamp [11:03:23]File name is /storage/kkm_last_timestamp [11:03:23]Write 4 bytes [11:03:23]NVStorageSaveData done [11:03:23]ExternCall_PrintAddStr [11:03:23]wPrintStart [11:03:23]Write to MH i2c: 01 00 00 C2 0C CE [11:03:23]Write i2c OK [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: 01 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: 01 07 00 [11:03:23]MH_I2C_Read... [11:03:23]Read from MH i2c: 01 07 00 C2 0C 00 00 00 00 00 FF 0F E3 [11:03:23]RasterBufferAndPrint [11:03:23]line Счет N : (3)200167 [11:03:23]line ИНН: 02508201610067 [11:03:23]line Контрольно-Кассовый Чек [11:03:23]line ПРОДАЖА [11:03:23]line Товар: 4600682557456 [11:03:23]line Напиток FLash up energy эн ж/б 0,5/0,45л [11:03:23]line 1.000 * 69.00 [11:03:23]line = 69.00 [11:03:23]line НДС 12% НСП 1% [11:03:23]line > о реализуемом товаре [11:03:23]line ИТОГО: 69.00 [11:03:23]line НСП 1% : 0.61 [11:03:23]line НДС 12% : 7.33 [11:03:23]line Наличными: 69.00 [11:03:23]line Безнал.: 0.00 [11:03:23]line Место: АЗС № 87 "Партнер Нефть" [11:03:23]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:03:23]line СНО: Общий режим [11:03:23]line Чек 72 27.10.2024 11:03 [11:03:23]line Смена: 532 ФФД: 1.0 [11:03:23]line ЗНМ: 0300000084 [11:03:23]line РНМ: 0000000000091622 [11:03:23]line Версия ККМ: 001 [11:03:23]line ФМ: 0000000000874674 [11:03:23]line ФД: 60540 [11:03:23]line ФПД: 105729948522037 [11:03:23]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110322&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60540&fm=105729948522037&tin=02508201610067®Number=0000000000091622&sum=6900 [11:03:23]line 0 [11:03:23]written 0, free lines is 4095 [11:03:23]OFD Sender: Processing packet 60540 [packets to send 30, broken 29] [11:03:23]ProducePacketName [11:03:23]name=ofd_packets/00060540 [11:03:23]OFD Sender: To server: pG, [11:03:23]CommunicateWithHost lk.salyk.kg:30040 [11:03:23]ConnectInit lk.salyk.kg [11:03:23]Connected sock=10 [11: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 36 37 34 3A 01 00 00 65 9E 32 01 1C 29 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FA 1D 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EC 00 00 35 04 06 00 60 29 2C 06 16 35 01 7D 21 40 B9 02 4C 38 [11:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 23 E2 47 00 B9 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7C EC 00 00 F4 03 04 00 E2 C3 1D 67 B6 04 01 00 00 BF A4 B4 D7 CE 16 1C DE [11:03:24]CommunicateWithHost err = 0 [11:03:24]CheckOFDResponse [11:03:24]1017 (14) - 77093643461234 [11:03:24]1041 (16) - 0000000000874674 [11:03:24]1040 (4) - 60540 [11:03:24]1012 (4) - 27.10.2024 04:38 [11:03:24]1206 (1) - 0 [11:03:24]OFD Sender: Remove packet 60540 [11:03:24]ProducePacketName [11:03:24]name=ofd_packets/00060540 [11:03:24]NVStorageDeleteData [11:03:24]Write to MH i2c: 01 00 00 EB 0C F7 [11:03:24]Write i2c OK [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: 01 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: 01 07 00 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: 01 07 00 EB 0C 00 00 00 00 00 E2 0C EC [11:03:24]RasterBufferAndPrint [11:03:24]line [11:03:24]line [11:03:24]line [11:03:24]line [11:03:24]line [11:03:24]written 0, free lines is 3304 [11:03:24]MH_Cut [11:03:24]Write to MH i2c: D1 01 00 F2 0C 01 D0 [11:03:24]Write i2c OK [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: D1 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: D1 01 00 [11:03:24]MH_I2C_Read... [11:03:24]Read from MH i2c: D1 01 00 F2 0C 00 CF [11:03:24]Write to MH i2c: 01 00 00 F3 0C FF [11:03:24]Write i2c OK [11:03:24]MH_I2C_Read... [11:03:24]OFD Sender: No OFD packet to send [11:03:24]*** Cut start [11:03:24]*** Partial cut [11:03:24]*** CUTSNS_PIN = 1 [11:03:24]*** CUTSNS_PIN = 0 [11:03:25]*** Brake cut motor [11:03:25]Read from MH i2c: 01 [11:03:25]MH_I2C_Read... [11:03:25]*** Stop cut motor [11:03:25]*** Cut end [11:03:25]Read from MH i2c: 01 07 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: 01 07 00 F3 0C 00 00 00 00 00 FF 0F 14 [11:03:25]process_action close_receipt done [11:03:25]requested_data is exist [11:03:25]produce_requested_data [11:03:25]requested_item fm.sn is exist - process it [11:03:25]wFMCommunicate request_size=4 [11:03:25]MH_SAM_APDU [11:03:25]CAPDU: 80 11 00 00 [11:03:25]Write to MH i2c: E2 08 00 F4 0C 80 11 00 00 00 00 00 00 7A [11:03:25]Write i2c OK [11:03:25]MH_I2C_Read... [11:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:25]Read from MH i2c: E2 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 17 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 17 00 F4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D1 [11:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:03:25]wFMCommunicate OK [11:03:25]requested_item fd.num is exist - process it [11:03:25]SAM_PROTO_GetFieldsCounters [11:03:25]wFMCommunicate request_size=4 [11:03:25]MH_SAM_APDU [11:03:25]CAPDU: 80 13 00 00 [11:03:25]Write to MH i2c: E2 08 00 F5 0C 80 13 00 00 00 00 00 00 7D [11:03:25]Write i2c OK [11:03:25]MH_I2C_Read... [11:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:25]Read from MH i2c: E2 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 62 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 62 00 F5 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [11: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:25]wFMCommunicate OK [11:03:25]SAM_PROTO_GetFieldsCounters done [11:03:25]requested_item shift.num is exist - process it [11:03:25]requested_item shift.opened is exist - process it [11:03:25]req_shift_opened [11:03:25]FM_GetShiftState [11:03:25]SAM_PROTO_GetShiftState [11:03:25]wFMCommunicate request_size=4 [11:03:25]MH_SAM_APDU [11:03:25]CAPDU: 80 13 01 00 [11:03:25]Write to MH i2c: E2 08 00 F6 0C 80 13 01 00 00 00 00 00 7F [11:03:25]Write i2c OK [11:03:25]MH_I2C_Read... [11:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:25]Read from MH i2c: E2 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 0E 00 [11:03:25]MH_I2C_Read... [11:03:25]Read from MH i2c: E2 0E 00 F6 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 1B [11:03:25]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:03:25]wFMCommunicate OK [11:03:25]SAM_PROTO_GetShiftState done [11:03:25]FM_GetShiftState done [11:03:25]req_shift_opened done [11:03:25]requested_item shift.open_date is exist - process it [11:03:25]req_shift_open_date [11:03:25]req_shift_open_date done [11:03:25]produce_requested_data done [11:03:25]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60540,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:03:25]process_action_free close_receipt [11:03:25]json_value_free [11:03:25]json_value_free done [11:03:25]process_json_proto returns [11:03:25]Send response to host [11:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60540,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:03:25]free response buf [11:03:25]execute_script done [11:03:25]execute_script returns [11:03:25]free content buf [11:03:25]Sock 9.Close socket [11:03:25]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:29]accept exits with 7 [11:08:29]New connection [11:08:29]New thread 3067362660 created [11:08:29]Thread 3067219300 joined [11:08:29]Waiting for new connection... [11:08:29] Sock 7.Parse request [11:08:29]Sock 7.Check first char [11:08:29]Sock 7.First char is OK [11:08:29]request: POST /json_proto HTTP/1.0 [11:08:29]Method: POST [11:08:29]URL: /json_proto [11:08:29]Method is POST - this is cgi request [11:08:29]url: /json_proto [11:08:29]query_string will be loaded in cgi processing [11:08:29]execute_cgi json_proto POST (null) [11:08:29]execute_cgi path=json_proto method=POST [11:08:29]POST find Content-Length [11:08:29]Host: 172.17.42.196:8080 [11:08:29]Content-Length: 626 [11:08:29]Content-Type: application/json [11:08:29] [11:08:29]POST finish read [11:08:29]Found Content-Length = 626 [11:08:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200168", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:29]execute_script... [11:08:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200168", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:29]POST & json_proto [11:08:29]process_json_proto [11:08:29]json parsed OK: [11:08:29]protocol is kg_v1.0 [11:08:29]action value=close_receipt [11:08:29]process_action close_receipt [11:08:29]cmd_close_receipt [11:08:29]MH_GetDate [11:08:29]Write to MH i2c: F0 00 00 F7 0C F2 [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: F0 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: F0 09 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: F0 09 00 F7 0C 00 2E 1F 1E 67 FF C4 6B 64 5F [11:08:29]GetLastDocTimeStamp 1730027002 [11:08:29]current date 1730027310 [11:08:29]FM_GetShiftState [11:08:29]SAM_PROTO_GetShiftState [11:08:29]wFMCommunicate request_size=4 [11:08:29]MH_SAM_APDU [11:08:29]CAPDU: 80 13 01 00 [11:08:29]Write to MH i2c: E2 08 00 F8 0C 80 13 01 00 00 00 00 00 81 [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:29]Read from MH i2c: E2 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 0E 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 0E 00 F8 0C 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 1D [11:08:29]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:08:29]wFMCommunicate OK [11:08:29]SAM_PROTO_GetShiftState done [11:08:29]FM_GetShiftState done [11:08:29]opened in 1729989505 [11:08:29]opened+sec_in_day 1730075905 [11:08:29]quantity*price = 11500 [11:08:29]sum+1 = 11501 [11:08:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 73 27.10.2024 11:08 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60541 ФПД: 278833686318293 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110830&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60541&fm=278833686318293&tin=02508201610067®Number=0000000000091622&sum=11500 0 [11:08:31]StoreToDocumentArchive [11:08:31]shift 532 fd 60541 [11:08:31]save to /storage/0532/doc_00060541 [11:08:31]save last doc name /storage/0532/doc_00060541 to /storage/kkm_last_doc_name [11:08:31]save OK [11:08:31]Clear old archive folders... [11:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:08:31]tlvbuf is 001F1110 [11:08:31]SAM_PROTO_ClearQueue [11:08:31]wFMCommunicate request_size=4 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 09 00 00 [11:08:31]Write to MH i2c: E2 08 00 05 0D 80 09 00 00 00 00 00 00 84 [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:31]Read from MH i2c: E2 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 05 0D 00 90 00 86 [11:08:31]RAPDU: 90 00 [11:08:31]wFMCommunicate OK [11:08:31]SAM_PROTO_ClearQueue done [11:08:31]KKMCreateOFDPacket [11:08:31]OFDProtocolAddRootSTLVToBuf [11:08:31]FM_MakeSignedData [11:08:31]FM_MakeSignedData [11:08:31]SAM_PROTO_SignData [11:08:31]wFMCommunicate request_size=4 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 0D 01 02 [11:08:31]Write to MH i2c: E2 08 00 06 0D 80 0D 01 02 00 00 00 00 8C [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:31]Read from MH i2c: E2 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [11:08:31]RAPDU: 90 00 [11:08:31]wFMCommunicate OK [11:08:31]wFMCommunicate request_size=255 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 [11:08:31]Write to MH i2c: E2 02 01 07 0D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 00 00 54 [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:31]Read from MH i2c: E2 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [11:08:31]RAPDU: 90 00 [11:08:31]wFMCommunicate OK [11:08:31]wFMCommunicate request_size=33 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EC 00 00 35 04 06 00 FD 99 06 D3 0C D5 [11:08:31]Write to MH i2c: E2 24 00 08 0D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EC 00 00 35 04 06 00 FD 99 06 D3 0C D5 00 00 DB [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:31]Read from MH i2c: E2 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [11:08:31]RAPDU: 90 00 [11:08:31]wFMCommunicate OK [11:08:31]wFMCommunicate request_size=4 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 0D 03 02 [11:08:31]Write to MH i2c: E2 08 00 09 0D 80 0D 03 02 00 00 00 00 91 [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:31]Read from MH i2c: E2 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 0B 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 0B 00 09 0D 00 4C 81 F8 9C DF 21 CB 7B 90 00 39 [11:08:31]RAPDU: 4C 81 F8 9C DF 21 CB 7B 90 00 [11:08:31]wFMCommunicate OK [11:08:31]SAM_PROTO_SignData done [11:08:31]FM_MakeSignedData done [11:08:31]CreateOFDProtocolMessage [11:08:31]wFMCommunicate request_size=4 [11:08:31]MH_SAM_APDU [11:08:31]CAPDU: 80 11 00 00 [11:08:31]Write to MH i2c: E2 08 00 0A 0D 80 11 00 00 00 00 00 00 91 [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:31]Read from MH i2c: E2 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 17 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: E2 17 00 0A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E8 [11:08:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:08:31]wFMCommunicate OK [11:08:31]CreateOFDProtocolMessage done [11:08:31]OFDSenderStorePacket 60541 [11:08:31]StoreOFDPacket docnum=60541 [11:08:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 26 01 00 00 85 C8 1E 01 CF 52 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EC 00 00 35 04 06 00 FD 99 06 D3 0C D5 4C 81 F8 9C DF 21 CB 7B [11:08:31]CheckFolder [11:08:31]dirname=/storage/ofd_packets [11:08:31]CheckFolder done [11:08:31]ProducePacketName [11:08:31]name=ofd_packets/00060541 [11:08:31]NVStorageSaveData ofd_packets/00060541 [11:08:31]File name is /storage/ofd_packets/00060541 [11:08:31]Write 324 bytes [11:08:31]NVStorageSaveData done [11:08:31]OFDSenderStorePacket done [11:08:31]KKMCreateOFDPacket done [11:08:31]NVStorageSaveData kkm_last_timestamp [11:08:31]File name is /storage/kkm_last_timestamp [11:08:31]Write 4 bytes [11:08:31]NVStorageSaveData done [11:08:31]ExternCall_PrintAddStr [11:08:31]wPrintStart [11:08:31]Write to MH i2c: 01 00 00 0B 0D 18 [11:08:31]Write i2c OK [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: 01 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: 01 07 00 [11:08:31]MH_I2C_Read... [11:08:31]Read from MH i2c: 01 07 00 0B 0D 00 00 00 00 00 FF 0F 2D [11:08:31]RasterBufferAndPrint [11:08:31]line Счет N : (3)200168 [11:08:31]line ИНН: 02508201610067 [11:08:31]line Контрольно-Кассовый Чек [11:08:31]line ПРОДАЖА [11:08:31]line Товар: 2000036240010 [11:08:31]line Кофе Латте (GABB TRADE) [11:08:31]line 1.000 * 115.00 [11:08:31]line = 115.00 [11:08:31]line НДС 12% НСП 1% [11:08:31]line > о реализуемом товаре [11:08:31]line ИТОГО: 115.00 [11:08:31]line НСП 1% : 1.02 [11:08:31]line НДС 12% : 12.21 [11:08:31]line Наличными: 115.00 [11:08:31]line Безнал.: 0.00 [11:08:31]line Место: АЗС № 87 "Партнер Нефть" [11:08:31]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:08:31]line СНО: Общий режим [11:08:31]line Чек 73 27.10.2024 11:08 [11:08:31]line Смена: 532 ФФД: 1.0 [11:08:31]line ЗНМ: 0300000084 [11:08:31]line РНМ: 0000000000091622 [11:08:31]line Версия ККМ: 001 [11:08:31]line ФМ: 0000000000874674 [11:08:31]line ФД: 60541 [11:08:31]line ФПД: 278833686318293 [11:08:31]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110830&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60541&fm=278833686318293&tin=02508201610067®Number=0000000000091622&sum=11500 [11:08:31]OFD Sender: Processing packet 60541 [packets to send 30, broken 29] [11:08:31]ProducePacketName [11:08:31]name=ofd_packets/00060541 [11:08:31]OFD Sender: To server: pG, [11:08:31]CommunicateWithHost lk.salyk.kg:30040 [11:08:31]ConnectInit lk.salyk.kg [11:08:31]line 0 [11:08:31]written 0, free lines is 4095 [11:08:32]Connected sock=10 [11:08: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 36 37 34 26 01 00 00 85 C8 1E 01 CF 52 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 2E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7D EC 00 00 35 04 06 00 FD 99 06 D3 0C D5 4C 81 F8 9C DF 21 CB 7B [11:08:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 45 6F 47 00 07 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 36 37 34 10 04 04 00 7D EC 00 00 F4 03 04 00 16 C5 1D 67 B6 04 01 00 00 49 64 A2 5F 66 D5 0B B3 [11:08:32]CommunicateWithHost err = 0 [11:08:32]CheckOFDResponse [11:08:32]1017 (14) - 77093643461234 [11:08:32]1041 (16) - 0000000000874674 [11:08:32]1040 (4) - 60541 [11:08:32]1012 (4) - 27.10.2024 04:44 [11:08:32]1206 (1) - 0 [11:08:32]OFD Sender: Remove packet 60541 [11:08:32]ProducePacketName [11:08:32]name=ofd_packets/00060541 [11:08:32]NVStorageDeleteData [11:08:32]Write to MH i2c: 01 00 00 33 0D 40 [11:08:32]Write i2c OK [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: 01 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: 01 07 00 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: 01 07 00 33 0D 00 00 00 00 00 05 0D 59 [11:08:32]RasterBufferAndPrint [11:08:32]line [11:08:32]line [11:08:32]line [11:08:32]line [11:08:32]line [11:08:32]written 0, free lines is 3340 [11:08:32]MH_Cut [11:08:32]Write to MH i2c: D1 01 00 3A 0D 01 19 [11:08:32]Write i2c OK [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: D1 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: D1 01 00 [11:08:32]MH_I2C_Read... [11:08:32]Read from MH i2c: D1 01 00 3A 0D 00 18 [11:08:32]Write to MH i2c: 01 00 00 3B 0D 48 [11:08:32]Write i2c OK [11:08:32]MH_I2C_Read... [11:08:32]OFD Sender: No OFD packet to send [11:08:33]*** Cut start [11:08:33]*** Partial cut [11:08:33]*** CUTSNS_PIN = 1 [11:08:33]*** CUTSNS_PIN = 0 [11:08:33]*** Brake cut motor [11:08:33]Read from MH i2c: 01 [11:08:33]*** Stop cut motor [11:08:33]*** Cut end [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: 01 07 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: 01 07 00 3B 0D 00 00 00 00 00 FF 0F 5D [11:08:33]process_action close_receipt done [11:08:33]requested_data is exist [11:08:33]produce_requested_data [11:08:33]requested_item fm.sn is exist - process it [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 11 00 00 [11:08:33]Write to MH i2c: E2 08 00 3C 0D 80 11 00 00 00 00 00 00 C3 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 17 00 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 17 00 3C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 1A [11:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:08:33]wFMCommunicate OK [11:08:33]requested_item fd.num is exist - process it [11:08:33]SAM_PROTO_GetFieldsCounters [11:08:33]wFMCommunicate request_size=4 [11:08:33]MH_SAM_APDU [11:08:33]CAPDU: 80 13 00 00 [11:08:33]Write to MH i2c: E2 08 00 3D 0D 80 13 00 00 00 00 00 00 C6 [11:08:33]Write i2c OK [11:08:33]MH_I2C_Read... [11:08:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:33]Read from MH i2c: E2 [11:08:33]MH_I2C_Read... [11:08:33]Read from MH i2c: E2 62 00 [11:08:33]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 62 00 3D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [11:08: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_GetFieldsCounters done [11:08:34]requested_item shift.num is exist - process it [11:08:34]requested_item shift.opened is exist - process it [11:08:34]req_shift_opened [11:08:34]FM_GetShiftState [11:08:34]SAM_PROTO_GetShiftState [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 13 01 00 [11:08:34]Write to MH i2c: E2 08 00 3E 0D 80 13 01 00 00 00 00 00 C8 [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 3E 0D 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 64 [11:08:34]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_GetShiftState done [11:08:34]FM_GetShiftState done [11:08:34]req_shift_opened done [11:08:34]requested_item shift.open_date is exist - process it [11:08:34]req_shift_open_date [11:08:34]req_shift_open_date done [11:08:34]produce_requested_data done [11:08:34]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60541,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:08:34]process_action_free close_receipt [11:08:34]json_value_free [11:08:34]json_value_free done [11:08:34]process_json_proto returns [11:08:34]Send response to host [11:08:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60541,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:08:34]free response buf [11:08:34]execute_script done [11:08:34]execute_script returns [11:08:34]free content buf [11:08:34]Sock 7.Close socket [11:08:34]Sock 7.Thread stoped [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:33]accept exits with 9 [11:09:33]New connection [11:09:33]New thread 3067219300 created [11:09:33]Thread 3067362660 joined [11:09:33]Waiting for new connection... [11:09:33] Sock 9.Parse request [11:09:33]Sock 9.Check first char [11:09:33]Sock 9.First char is OK [11:09:33]request: POST /json_proto HTTP/1.0 [11:09:33]Method: POST [11:09:33]URL: /json_proto [11:09:33]Method is POST - this is cgi request [11:09:33]url: /json_proto [11:09:33]query_string will be loaded in cgi processing [11:09:33]execute_cgi json_proto POST (null) [11:09:33]execute_cgi path=json_proto method=POST [11:09:33]POST find Content-Length [11:09:33]Host: 172.17.42.196:8080 [11:09:33]Content-Length: 622 [11:09:33]Content-Type: application/json [11:09:33] [11:09:33]POST finish read [11:09:33]Found Content-Length = 622 [11:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200169", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:33]execute_script... [11:09: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 : (3)200169", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:33]POST & json_proto [11:09:33]process_json_proto [11:09:33]json parsed OK: [11:09:33]protocol is kg_v1.0 [11:09:33]action value=close_receipt [11:09:33]process_action close_receipt [11:09:33]cmd_close_receipt [11:09:33]MH_GetDate [11:09:33]Write to MH i2c: F0 00 00 3F 0D 3B [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: F0 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: F0 09 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: F0 09 00 3F 0D 00 6E 1F 1E 67 FF C4 6B 64 E8 [11:09:33]GetLastDocTimeStamp 1730027310 [11:09:33]current date 1730027374 [11:09:33]FM_GetShiftState [11:09:33]SAM_PROTO_GetShiftState [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 13 01 00 [11:09:33]Write to MH i2c: E2 08 00 40 0D 80 13 01 00 00 00 00 00 CA [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0E 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0E 00 40 0D 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 66 [11:09:33]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:09:33]wFMCommunicate OK [11:09:33]SAM_PROTO_GetShiftState done [11:09:33]FM_GetShiftState done [11:09:33]opened in 1729989505 [11:09:33]opened+sec_in_day 1730075905 [11:09:33]quantity*price = 31800 [11:09:33]sum+1 = 31801 [11:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.81 НДС 12% : 33.77 Наличными: 318.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 74 27.10.2024 11:09 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60542 ФПД: 213748244969086 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110934&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60542&fm=213748244969086&tin=02508201610067®Number=0000000000091622&sum=31800 0 [11:09:34]StoreToDocumentArchive [11:09:34]shift 532 fd 60542 [11:09:34]save to /storage/0532/doc_00060542 [11:09:34]save last doc name /storage/0532/doc_00060542 to /storage/kkm_last_doc_name [11:09:34]save OK [11:09:34]Clear old archive folders... [11:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:09:34]tlvbuf is 0020D2C0 [11:09:34]SAM_PROTO_ClearQueue [11:09:34]wFMCommunicate request_size=4 [11:09:34]MH_SAM_APDU [11:09:34]CAPDU: 80 09 00 00 [11:09:34]Write to MH i2c: E2 08 00 4D 0D 80 09 00 00 00 00 00 00 CC [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:34]Read from MH i2c: E2 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: E2 03 00 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [11:09:34]RAPDU: 90 00 [11:09:34]wFMCommunicate OK [11:09:34]SAM_PROTO_ClearQueue done [11:09:34]KKMCreateOFDPacket [11:09:34]OFDProtocolAddRootSTLVToBuf [11:09:34]FM_MakeSignedData [11:09:34]FM_MakeSignedData [11:09:34]SAM_PROTO_SignData [11:09:34]wFMCommunicate request_size=4 [11:09:34]MH_SAM_APDU [11:09:34]CAPDU: 80 0D 01 02 [11:09:34]Write to MH i2c: E2 08 00 4E 0D 80 0D 01 02 00 00 00 00 D4 [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 03 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 03 00 4E 0D 00 90 00 CF [11:09:35]RAPDU: 90 00 [11:09:35]wFMCommunicate OK [11:09:35]wFMCommunicate request_size=255 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 [11:09:35]Write to MH i2c: E2 02 01 4F 0D 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 00 00 8C [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 03 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 03 00 4F 0D 00 90 00 D0 [11:09:35]RAPDU: 90 00 [11:09:35]wFMCommunicate OK [11:09:35]wFMCommunicate request_size=33 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EC 00 00 35 04 06 00 C2 67 24 36 76 7E [11:09:35]Write to MH i2c: E2 24 00 50 0D 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EC 00 00 35 04 06 00 C2 67 24 36 76 7E 00 00 4B [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 03 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [11:09:35]RAPDU: 90 00 [11:09:35]wFMCommunicate OK [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 0D 03 02 [11:09:35]Write to MH i2c: E2 08 00 51 0D 80 0D 03 02 00 00 00 00 D9 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0B 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0B 00 51 0D 00 E4 19 C5 28 7C 8B 77 43 90 00 85 [11:09:35]RAPDU: E4 19 C5 28 7C 8B 77 43 90 00 [11:09:35]wFMCommunicate OK [11:09:35]SAM_PROTO_SignData done [11:09:35]FM_MakeSignedData done [11:09:35]CreateOFDProtocolMessage [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 11 00 00 [11:09:35]Write to MH i2c: E2 08 00 52 0D 80 11 00 00 00 00 00 00 D9 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 17 00 [11:09:35]MH_I2C_Read... [11:09:35]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 36 37 34 90 00 30 [11:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:09:35]wFMCommunicate OK [11:09:35]CreateOFDProtocolMessage done [11:09:35]OFDSenderStorePacket 60542 [11:09:35]StoreOFDPacket docnum=60542 [11:09:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 26 01 00 00 05 9A 1E 01 0F 08 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EC 00 00 35 04 06 00 C2 67 24 36 76 7E E4 19 C5 28 7C 8B 77 43 [11:09:35]CheckFolder [11:09:35]dirname=/storage/ofd_packets [11:09:35]CheckFolder done [11:09:35]ProducePacketName [11:09:35]name=ofd_packets/00060542 [11:09:35]NVStorageSaveData ofd_packets/00060542 [11:09:35]File name is /storage/ofd_packets/00060542 [11:09:35]Write 324 bytes [11:09:35]NVStorageSaveData done [11:09:35]OFDSenderStorePacket done [11:09:35]KKMCreateOFDPacket done [11:09:35]NVStorageSaveData kkm_last_timestamp [11:09:35]File name is /storage/kkm_last_timestamp [11:09:35]Write 4 bytes [11:09:35]NVStorageSaveData done [11:09:35]ExternCall_PrintAddStr [11:09:35]wPrintStart [11:09:35]Write to MH i2c: 01 00 00 53 0D 60 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: 01 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: 01 07 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: 01 07 00 53 0D 00 00 00 00 00 FF 0F 75 [11:09:35]RasterBufferAndPrint [11:09:35]line Счет N : (3)200169 [11:09:35]line ИНН: 02508201610067 [11:09:35]line Контрольно-Кассовый Чек [11:09:35]line ПРОДАЖА [11:09:35]line Товар: 4640030091645 [11:09:35]line Сигареты ESSE Exchange M [11:09:35]line 2.000 * 159.00 [11:09:35]line = 318.00 [11:09:35]line НДС 12% НСП 1% [11:09:35]line > о реализуемом товаре [11:09:35]line ИТОГО: 318.00 [11:09:35]line НСП 1% : 2.81 [11:09:35]line НДС 12% : 33.77 [11:09:35]line Наличными: 318.00 [11:09:35]line Безнал.: 0.00 [11:09:35]line Место: АЗС № 87 "Партнер Нефть" [11:09:35]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:09:35]line СНО: Общий режим [11:09:35]line Чек 74 27.10.2024 11:09 [11:09:35]line Смена: 532 ФФД: 1.0 [11:09:35]line ЗНМ: 0300000084 [11:09:35]line РНМ: 0000000000091622 [11:09:35]line Версия ККМ: 001 [11:09:35]line ФМ: 0000000000874674 [11:09:35]line ФД: 60542 [11:09:35]line ФПД: 213748244969086 [11:09:35]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110934&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60542&fm=213748244969086&tin=02508201610067®Number=0000000000091622&sum=31800 [11:09:35]OFD Sender: Processing packet 60542 [packets to send 30, broken 29] [11:09:35]ProducePacketName [11:09:35]name=ofd_packets/00060542 [11:09:35]OFD Sender: To server: pG, [11:09:35]CommunicateWithHost lk.salyk.kg:30040 [11:09:35]ConnectInit lk.salyk.kg [11:09:35]line 0 [11:09:35]written 0, free lines is 4095 [11:09:35]Connected sock=10 [11:09: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 36 37 34 26 01 00 00 05 9A 1E 01 0F 08 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 6E 1F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EC 00 00 35 04 06 00 C2 67 24 36 76 7E E4 19 C5 28 7C 8B 77 43 [11:09:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 A3 CB 47 00 DF 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7E EC 00 00 F4 03 04 00 56 C5 1D 67 B6 04 01 00 00 C6 5F 72 6C 1D C7 67 1E [11:09:36]CommunicateWithHost err = 0 [11:09:36]CheckOFDResponse [11:09:36]1017 (14) - 77093643461234 [11:09:36]1041 (16) - 0000000000874674 [11:09:36]1040 (4) - 60542 [11:09:36]1012 (4) - 27.10.2024 04:45 [11:09:36]1206 (1) - 0 [11:09:36]OFD Sender: Remove packet 60542 [11:09:36]ProducePacketName [11:09:36]name=ofd_packets/00060542 [11:09:36]NVStorageDeleteData [11:09:36]Write to MH i2c: 01 00 00 7B 0D 88 [11:09:36]Write i2c OK [11:09:36]MH_I2C_Read... [11:09:36]Read from MH i2c: 01 [11:09:36]MH_I2C_Read... [11:09:36]Read from MH i2c: 01 07 00 [11:09:36]MH_I2C_Read... [11:09:36]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 09 0D A5 [11:09:36]RasterBufferAndPrint [11:09:36]line [11:09:36]line [11:09:36]line [11:09:36]line [11:09:36]line [11:09:36]written 0, free lines is 3343 [11:09:36]MH_Cut [11:09:36]Write to MH i2c: D1 01 00 82 0D 01 61 [11:09:36]Write i2c OK [11:09:36]MH_I2C_Read... [11:09:36]Read from MH i2c: D1 [11:09:36]MH_I2C_Read... [11:09:36]Read from MH i2c: D1 01 00 [11:09:36]MH_I2C_Read... [11:09:36]Read from MH i2c: D1 01 00 82 0D 00 60 [11:09:36]Write to MH i2c: 01 00 00 83 0D 90 [11:09:36]Write i2c OK [11:09:36]MH_I2C_Read... [11:09:36]OFD Sender: No OFD packet to send [11:09:36]*** Cut start [11:09:36]*** Partial cut [11:09:36]*** CUTSNS_PIN = 1 [11:09:37]*** CUTSNS_PIN = 0 [11:09:37]*** Brake cut motor [11:09:37]Read from MH i2c: 01 [11:09:37]MH_I2C_Read... [11:09:37]*** Stop cut motor [11:09:37]*** Cut end [11:09:37]Read from MH i2c: 01 07 00 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: 01 07 00 83 0D 00 00 00 00 00 FF 0F A5 [11:09:37]process_action close_receipt done [11:09:37]requested_data is exist [11:09:37]produce_requested_data [11:09:37]requested_item fm.sn is exist - process it [11:09:37]wFMCommunicate request_size=4 [11:09:37]MH_SAM_APDU [11:09:37]CAPDU: 80 11 00 00 [11:09:37]Write to MH i2c: E2 08 00 84 0D 80 11 00 00 00 00 00 00 0B [11:09:37]Write i2c OK [11:09:37]MH_I2C_Read... [11:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:37]Read from MH i2c: E2 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 17 00 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 17 00 84 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 62 [11:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:09:37]wFMCommunicate OK [11:09:37]requested_item fd.num is exist - process it [11:09:37]SAM_PROTO_GetFieldsCounters [11:09:37]wFMCommunicate request_size=4 [11:09:37]MH_SAM_APDU [11:09:37]CAPDU: 80 13 00 00 [11:09:37]Write to MH i2c: E2 08 00 85 0D 80 13 00 00 00 00 00 00 0E [11:09:37]Write i2c OK [11:09:37]MH_I2C_Read... [11:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:37]Read from MH i2c: E2 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 62 00 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 62 00 85 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [11:09: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7E EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:37]wFMCommunicate OK [11:09:37]SAM_PROTO_GetFieldsCounters done [11:09:37]requested_item shift.num is exist - process it [11:09:37]requested_item shift.opened is exist - process it [11:09:37]req_shift_opened [11:09:37]FM_GetShiftState [11:09:37]SAM_PROTO_GetShiftState [11:09:37]wFMCommunicate request_size=4 [11:09:37]MH_SAM_APDU [11:09:37]CAPDU: 80 13 01 00 [11:09:37]Write to MH i2c: E2 08 00 86 0D 80 13 01 00 00 00 00 00 10 [11:09:37]Write i2c OK [11:09:37]MH_I2C_Read... [11:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:37]Read from MH i2c: E2 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 0E 00 [11:09:37]MH_I2C_Read... [11:09:37]Read from MH i2c: E2 0E 00 86 0D 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 AC [11:09:37]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:09:37]wFMCommunicate OK [11:09:37]SAM_PROTO_GetShiftState done [11:09:37]FM_GetShiftState done [11:09:37]req_shift_opened done [11:09:37]requested_item shift.open_date is exist - process it [11:09:37]req_shift_open_date [11:09:37]req_shift_open_date done [11:09:37]produce_requested_data done [11:09:37]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60542,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:09:37]process_action_free close_receipt [11:09:37]json_value_free [11:09:37]json_value_free done [11:09:37]process_json_proto returns [11:09:37]Send response to host [11:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60542,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:09:37]free response buf [11:09:37]execute_script done [11:09:37]execute_script returns [11:09:37]free content buf [11:09:37]Sock 9.Close socket [11:09:37]Sock 9.Thread stoped [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:10]accept exits with 7 [11:13:10]New connection [11:13:10]New thread 3067362660 created [11:13:10]Thread 3067219300 joined [11:13:10]Waiting for new connection... [11:13:10] Sock 7.Parse request [11:13:10]Sock 7.Check first char [11:13:10]Sock 7.First char is OK [11:13:10]request: POST /json_proto HTTP/1.0 [11:13:10]Method: POST [11:13:10]URL: /json_proto [11:13:10]Method is POST - this is cgi request [11:13:10]url: /json_proto [11:13:10]query_string will be loaded in cgi processing [11:13:10]execute_cgi json_proto POST (null) [11:13:10]execute_cgi path=json_proto method=POST [11:13:10]POST find Content-Length [11:13:10]Host: 172.17.42.196:8080 [11:13:10]Content-Length: 646 [11:13:10]Content-Type: application/json [11:13:10] [11:13:10]POST finish read [11:13:10]Found Content-Length = 646 [11:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200170", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:10]execute_script... [11:13:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200170", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:10]POST & json_proto [11:13:10]process_json_proto [11:13:10]json parsed OK: [11:13:10]protocol is kg_v1.0 [11:13:10]action value=close_receipt [11:13:10]process_action close_receipt [11:13:10]cmd_close_receipt [11:13:10]MH_GetDate [11:13:10]Write to MH i2c: F0 00 00 87 0D 83 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: F0 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: F0 09 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: F0 09 00 87 0D 00 47 20 1E 67 FF C4 6B 64 0A [11:13:10]GetLastDocTimeStamp 1730027374 [11:13:10]current date 1730027591 [11:13:10]FM_GetShiftState [11:13:10]SAM_PROTO_GetShiftState [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 13 01 00 [11:13:10]Write to MH i2c: E2 08 00 88 0D 80 13 01 00 00 00 00 00 12 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0E 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0E 00 88 0D 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 AE [11:13:10]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_GetShiftState done [11:13:10]FM_GetShiftState done [11:13:10]opened in 1729989505 [11:13:10]opened+sec_in_day 1730075905 [11:13:10]quantity*price = 26000 [11:13:10]sum+1 = 26001 [11:13:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 75 27.10.2024 11:13 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60543 ФПД: 5136774570487 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111311&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60543&fm=5136774570487&tin=02508201610067®Number=0000000000091622&sum=26000 0 [11:13:11]StoreToDocumentArchive [11:13:11]shift 532 fd 60543 [11:13:11]save to /storage/0532/doc_00060543 [11:13:11]save last doc name /storage/0532/doc_00060543 to /storage/kkm_last_doc_name [11:13:11]save OK [11:13:11]Clear old archive folders... [11:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=282 [11:13:11]tlvbuf is 001F7C30 [11:13:11]SAM_PROTO_ClearQueue [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 09 00 00 [11:13:11]Write to MH i2c: E2 08 00 95 0D 80 09 00 00 00 00 00 00 14 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 09 00 00... 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 95 0D 00 90 00 16 [11:13:11]RAPDU: 90 00 [11:13:11]wFMCommunicate OK [11:13:11]SAM_PROTO_ClearQueue done [11:13:11]KKMCreateOFDPacket [11:13:11]OFDProtocolAddRootSTLVToBuf [11:13:11]FM_MakeSignedData [11:13:11]FM_MakeSignedData [11:13:11]SAM_PROTO_SignData [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 0D 01 02 [11:13:11]Write to MH i2c: E2 08 00 96 0D 80 0D 01 02 00 00 00 00 1C [11:13:11]Write i2c OK [11:13:11]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 96 0D 00 90 00 17 [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 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 47 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 [11:13:11]Write to MH i2c: E2 02 01 97 0D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 47 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 00 00 2D [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 97 0D 00 90 00 18 [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=41 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EC 00 00 35 04 06 00 04 AB FF 9F A1 F7 [11:13:12]Write to MH i2c: E2 2C 00 98 0D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EC 00 00 35 04 06 00 04 AB FF 9F A1 F7 00 00 42 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 98 0D 00 90 00 19 [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 03 02 [11:13:12]Write to MH i2c: E2 08 00 99 0D 80 0D 03 02 00 00 00 00 21 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0B 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0B 00 99 0D 00 B2 FF 32 52 3A 29 3E 09 90 00 01 [11:13:12]RAPDU: B2 FF 32 52 3A 29 3E 09 90 00 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_SignData done [11:13:12]FM_MakeSignedData done [11:13:12]CreateOFDProtocolMessage [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 11 00 00 [11:13:12]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 17 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 78 [11:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:13:12]wFMCommunicate OK [11:13:12]CreateOFDProtocolMessage done [11:13:12]OFDSenderStorePacket 60543 [11:13:12]StoreOFDPacket docnum=60543 [11:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2E 01 00 00 C8 DE 26 01 08 97 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 47 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EC 00 00 35 04 06 00 04 AB FF 9F A1 F7 B2 FF 32 52 3A 29 3E 09 [11:13:12]CheckFolder [11:13:12]dirname=/storage/ofd_packets [11:13:12]CheckFolder done [11:13:12]ProducePacketName [11:13:12]name=ofd_packets/00060543 [11:13:12]NVStorageSaveData ofd_packets/00060543 [11:13:12]File name is /storage/ofd_packets/00060543 [11:13:12]Write 332 bytes [11:13:12]NVStorageSaveData done [11:13:12]OFDSenderStorePacket done [11:13:12]KKMCreateOFDPacket done [11:13:12]NVStorageSaveData kkm_last_timestamp [11:13:12]File name is /storage/kkm_last_timestamp [11:13:12]Write 4 bytes [11:13:12]NVStorageSaveData done [11:13:12]OFD Sender: Processing packet 60543 [packets to send 30, broken 29] [11:13:12]ProducePacketName [11:13:12]name=ofd_packets/00060543 [11:13:12]OFD Sender: To server: pG, [11:13:12]CommunicateWithHost lk.salyk.kg:30040 [11:13:12]ConnectInit lk.salyk.kg [11:13:12]ExternCall_PrintAddStr [11:13:12]wPrintStart [11:13:12]Write to MH i2c: 01 00 00 9B 0D A8 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 07 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 07 00 9B 0D 00 00 00 00 00 FF 0F BD [11:13:12]RasterBufferAndPrint [11:13:12]line Счет N : (3)200170 [11:13:12]line ИНН: 02508201610067 [11:13:12]line Контрольно-Кассовый Чек [11:13:12]line ПРОДАЖА [11:13:12]line Товар: 2000036220012 [11:13:12]line Кофе Капучино XL(GABB TRADE) [11:13:12]line 2.000 * 130.00 [11:13:12]line = 260.00 [11:13:12]line НДС 12% НСП 1% [11:13:12]line > о реализуемом товаре [11:13:12]line ИТОГО: 260.00 [11:13:12]line НСП 1% : 2.30 [11:13:12]line НДС 12% : 27.61 [11:13:12]line Наличными: 260.00 [11:13:12]line Безнал.: 0.00 [11:13:12]line Место: АЗС № 87 "Партнер Нефть" [11:13:12]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:13:12]line СНО: Общий режим [11:13:12]line Чек 75 27.10.2024 11:13 [11:13:12]line Смена: 532 ФФД: 1.0 [11:13:12]line ЗНМ: 0300000084 [11:13:12]line РНМ: 0000000000091622 [11:13:12]line Версия ККМ: 001 [11:13:12]line ФМ: 0000000000874674 [11:13:12]line ФД: 60543 [11:13:12]line ФПД: 5136774570487 [11:13:12]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111311&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60543&fm=5136774570487&tin=02508201610067®Number=0000000000091622&sum=26000 [11:13:12]line 0 [11:13:12]Connected sock=11 [11:13: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 36 37 34 2E 01 00 00 C8 DE 26 01 08 97 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 47 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 7F EC 00 00 35 04 06 00 04 AB FF 9F A1 F7 B2 FF 32 52 3A 29 3E 09 [11:13:12]written 0, free lines is 4095 [11: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 36 37 34 4F 00 00 00 CC 4A 47 00 62 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 36 37 34 10 04 04 00 7F EC 00 00 F4 03 04 00 2F C6 1D 67 B6 04 01 00 00 70 3A 08 A8 80 CA F2 74 [11:13:12]CommunicateWithHost err = 0 [11:13:12]CheckOFDResponse [11:13:12]1017 (14) - 77093643461234 [11:13:12]1041 (16) - 0000000000874674 [11:13:12]1040 (4) - 60543 [11:13:12]1012 (4) - 27.10.2024 04:48 [11:13:12]1206 (1) - 0 [11:13:12]OFD Sender: Remove packet 60543 [11:13:12]ProducePacketName [11:13:12]name=ofd_packets/00060543 [11:13:12]NVStorageDeleteData [11:13:13]Write to MH i2c: 01 00 00 C4 0D D1 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 C4 0D 00 00 00 00 00 E6 0C CA [11:13:13]RasterBufferAndPrint [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]written 0, free lines is 3308 [11:13:13]MH_Cut [11:13:13]Write to MH i2c: D1 01 00 CB 0D 01 AA [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 01 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 01 00 CB 0D 00 A9 [11:13:13]Write to MH i2c: 01 00 00 CC 0D D9 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]OFD Sender: No OFD packet to send [11:13:14]*** Cut start [11:13:14]*** Partial cut [11:13:14]*** CUTSNS_PIN = 1 [11:13:14]*** CUTSNS_PIN = 0 [11:13:14]*** Brake cut motor [11:13:14]Read from MH i2c: 01 [11:13:14]MH_I2C_Read... [11:13:14]*** Stop cut motor [11:13:14]*** Cut end [11:13:14]Read from MH i2c: 01 07 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 FF 0F EE [11:13:14]process_action close_receipt done [11:13:14]requested_data is exist [11:13:14]produce_requested_data [11:13:14]requested_item fm.sn is exist - process it [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 11 00 00 [11:13:14]Write to MH i2c: E2 08 00 CD 0D 80 11 00 00 00 00 00 00 54 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 17 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 17 00 CD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AB [11:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:13:14]wFMCommunicate OK [11:13:14]requested_item fd.num is exist - process it [11:13:14]SAM_PROTO_GetFieldsCounters [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 13 00 00 [11:13:14]Write to MH i2c: E2 08 00 CE 0D 80 13 00 00 00 00 00 00 57 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 62 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 62 00 CE 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [11:13: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 7F EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:14]wFMCommunicate OK [11:13:14]SAM_PROTO_GetFieldsCounters done [11:13:14]requested_item shift.num is exist - process it [11:13:14]requested_item shift.opened is exist - process it [11:13:14]req_shift_opened [11:13:14]FM_GetShiftState [11:13:14]SAM_PROTO_GetShiftState [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 13 01 00 [11:13:14]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 0E 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F5 [11:13:14]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:13:14]wFMCommunicate OK [11:13:14]SAM_PROTO_GetShiftState done [11:13:14]FM_GetShiftState done [11:13:14]req_shift_opened done [11:13:14]requested_item shift.open_date is exist - process it [11:13:14]req_shift_open_date [11:13:14]req_shift_open_date done [11:13:14]produce_requested_data done [11:13:14]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60543,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:13:14]process_action_free close_receipt [11:13:14]json_value_free [11:13:14]json_value_free done [11:13:14]process_json_proto returns [11:13:14]Send response to host [11:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60543,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:13:14]free response buf [11:13:14]execute_script done [11:13:14]execute_script returns [11:13:14]free content buf [11:13:14]Sock 7.Close socket [11:13:14]Sock 7.Thread stoped [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:25]accept exits with 9 [11:13:25]New connection [11:13:25]New thread 3067219300 created [11:13:25]Thread 3067362660 joined [11:13:25]Waiting for new connection... [11:13:25] Sock 9.Parse request [11:13:25]Sock 9.Check first char [11:13:25]Sock 9.First char is OK [11:13:25]request: POST /json_proto HTTP/1.0 [11:13:25]Method: POST [11:13:25]URL: /json_proto [11:13:25]Method is POST - this is cgi request [11:13:25]url: /json_proto [11:13:25]query_string will be loaded in cgi processing [11:13:25]execute_cgi json_proto POST (null) [11:13:25]execute_cgi path=json_proto method=POST [11:13:25]POST find Content-Length [11:13:25]Host: 172.17.42.196:8080 [11:13:25]Content-Length: 623 [11:13:25]Content-Type: application/json [11:13:25] [11:13:25]POST finish read [11:13:25]Found Content-Length = 623 [11:13:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200171", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:25]execute_script... [11:13:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200171", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:25]POST & json_proto [11:13:25]process_json_proto [11:13:25]json parsed OK: [11:13:25]protocol is kg_v1.0 [11:13:25]action value=close_receipt [11:13:25]process_action close_receipt [11:13:25]cmd_close_receipt [11:13:25]MH_GetDate [11:13:25]Write to MH i2c: F0 00 00 D0 0D CC [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: F0 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: F0 09 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: F0 09 00 D0 0D 00 56 20 1E 67 FF C4 6B 64 62 [11:13:25]GetLastDocTimeStamp 1730027591 [11:13:25]current date 1730027606 [11:13:25]FM_GetShiftState [11:13:25]SAM_PROTO_GetShiftState [11:13:25]wFMCommunicate request_size=4 [11:13:25]MH_SAM_APDU [11:13:25]CAPDU: 80 13 01 00 [11:13:25]Write to MH i2c: E2 08 00 D1 0D 80 13 01 00 00 00 00 00 5B [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:25]Read from MH i2c: E2 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 0E 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 0E 00 D1 0D 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F7 [11:13:25]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:13:25]wFMCommunicate OK [11:13:25]SAM_PROTO_GetShiftState done [11:13:25]FM_GetShiftState done [11:13:25]opened in 1729989505 [11:13:25]opened+sec_in_day 1730075905 [11:13:25]quantity*price = 14400 [11:13:25]sum+1 = 14401 [11:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 76 27.10.2024 11:13 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60544 ФПД: 194002196656523 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111326&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60544&fm=194002196656523&tin=02508201610067®Number=0000000000091622&sum=14400 0 [11:13:26]StoreToDocumentArchive [11:13:26]shift 532 fd 60544 [11:13:26]save to /storage/0532/doc_00060544 [11:13:26]save last doc name /storage/0532/doc_00060544 to /storage/kkm_last_doc_name [11:13:26]save OK [11:13:26]Clear old archive folders... [11:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:13:26]tlvbuf is 0020FF10 [11:13:26]SAM_PROTO_ClearQueue [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 09 00 00 [11:13:26]Write to MH i2c: E2 08 00 DE 0D 80 09 00 00 00 00 00 00 5D [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]SAM_PROTO_ClearQueue done [11:13:27]KKMCreateOFDPacket [11:13:27]OFDProtocolAddRootSTLVToBuf [11:13:27]FM_MakeSignedData [11:13:27]FM_MakeSignedData [11:13:27]SAM_PROTO_SignData [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 01 02 [11:13:27]Write to MH i2c: E2 08 00 DF 0D 80 0D 01 02 00 00 00 00 65 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=255 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 4C 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [11:13:27]Write to MH i2c: E2 02 01 E0 0D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 4C 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 C2 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 E0 0D 00 90 00 61 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=34 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EC 00 00 35 04 06 00 B0 71 A8 04 71 8B [11:13:27]Write to MH i2c: E2 25 00 E1 0D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EC 00 00 35 04 06 00 B0 71 A8 04 71 8B 00 00 62 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 03 00 E1 0D 00 90 00 62 [11:13:27]RAPDU: 90 00 [11:13:27]wFMCommunicate OK [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 0D 03 02 [11:13:27]Write to MH i2c: E2 08 00 E2 0D 80 0D 03 02 00 00 00 00 6A [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 0B 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 0B 00 E2 0D 00 18 CF E5 AD 77 4F F6 C6 90 00 66 [11:13:27]RAPDU: 18 CF E5 AD 77 4F F6 C6 90 00 [11:13:27]wFMCommunicate OK [11:13:27]SAM_PROTO_SignData done [11:13:27]FM_MakeSignedData done [11:13:27]CreateOFDProtocolMessage [11:13:27]wFMCommunicate request_size=4 [11:13:27]MH_SAM_APDU [11:13:27]CAPDU: 80 11 00 00 [11:13:27]Write to MH i2c: E2 08 00 E3 0D 80 11 00 00 00 00 00 00 6A [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:27]Read from MH i2c: E2 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 17 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: E2 17 00 E3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C1 [11:13:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:13:27]wFMCommunicate OK [11:13:27]CreateOFDProtocolMessage done [11:13:27]OFDSenderStorePacket 60544 [11:13:27]StoreOFDPacket docnum=60544 [11:13:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 EA BE 1F 01 5C 51 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 4C 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EC 00 00 35 04 06 00 B0 71 A8 04 71 8B 18 CF E5 AD 77 4F F6 C6 [11:13:27]CheckFolder [11:13:27]dirname=/storage/ofd_packets [11:13:27]CheckFolder done [11:13:27]ProducePacketName [11:13:27]name=ofd_packets/00060544 [11:13:27]NVStorageSaveData ofd_packets/00060544 [11:13:27]File name is /storage/ofd_packets/00060544 [11:13:27]Write 325 bytes [11:13:27]NVStorageSaveData done [11:13:27]OFDSenderStorePacket done [11:13:27]KKMCreateOFDPacket done [11:13:27]NVStorageSaveData kkm_last_timestamp [11:13:27]File name is /storage/kkm_last_timestamp [11:13:27]Write 4 bytes [11:13:27]NVStorageSaveData done [11:13:27]ExternCall_PrintAddStr [11:13:27]wPrintStart [11:13:27]Write to MH i2c: 01 00 00 E4 0D F1 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [11:13:27]RasterBufferAndPrint [11:13:27]line Счет N : (3)200171 [11:13:27]line ИНН: 02508201610067 [11:13:27]line Контрольно-Кассовый Чек [11:13:27]line ПРОДАЖА [11:13:27]line Товар: 48743587 [11:13:27]line Сигареты Winston XStyle Silver [11:13:27]line 1.000 * 144.00 [11:13:27]line = 144.00 [11:13:27]line НДС 12% НСП 1% [11:13:27]line > о реализуемом товаре [11:13:27]line ИТОГО: 144.00 [11:13:27]line НСП 1% : 1.27 [11:13:27]line НДС 12% : 15.29 [11:13:27]line Наличными: 144.00 [11:13:27]line Безнал.: 0.00 [11:13:27]line Место: АЗС № 87 "Партнер Нефть" [11:13:27]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:13:27]line СНО: Общий режим [11:13:27]line Чек 76 27.10.2024 11:13 [11:13:27]line Смена: 532 ФФД: 1.0 [11:13:27]line ЗНМ: 0300000084 [11:13:27]line РНМ: 0000000000091622 [11:13:27]line Версия ККМ: 001 [11:13:27]line ФМ: 0000000000874674 [11:13:27]line ФД: 60544 [11:13:27]line ФПД: 194002196656523 [11:13:27]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111326&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60544&fm=194002196656523&tin=02508201610067®Number=0000000000091622&sum=14400 [11:13:27]OFD Sender: Processing packet 60544 [packets to send 30, broken 29] [11:13:27]ProducePacketName [11:13:27]name=ofd_packets/00060544 [11:13:27]OFD Sender: To server: pG, [11:13:27]CommunicateWithHost lk.salyk.kg:30040 [11:13:27]ConnectInit lk.salyk.kg [11:13:27]line 0 [11:13:27]written 0, free lines is 4095 [11:13:27]Connected sock=10 [11:13: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 36 37 34 27 01 00 00 EA BE 1F 01 5C 51 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 4C 00 00 00 F4 03 04 00 56 20 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EC 00 00 35 04 06 00 B0 71 A8 04 71 8B 18 CF E5 AD 77 4F F6 C6 [11:13:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 AE E8 47 00 91 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 80 EC 00 00 F4 03 04 00 3E C6 1D 67 B6 04 01 00 00 B9 94 55 89 71 39 58 74 [11:13:28]CommunicateWithHost err = 0 [11:13:28]CheckOFDResponse [11:13:28]1017 (14) - 77093643461234 [11:13:28]1041 (16) - 0000000000874674 [11:13:28]1040 (4) - 60544 [11:13:28]1012 (4) - 27.10.2024 04:49 [11:13:28]1206 (1) - 0 [11:13:28]OFD Sender: Remove packet 60544 [11:13:28]ProducePacketName [11:13:28]name=ofd_packets/00060544 [11:13:28]NVStorageDeleteData [11:13:28]Write to MH i2c: 01 00 00 0D 0E 1B [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 DB 0C 09 [11:13:28]RasterBufferAndPrint [11:13:28]line [11:13:28]line [11:13:28]line [11:13:28]line [11:13:28]line [11:13:28]written 0, free lines is 3297 [11:13:28]MH_Cut [11:13:28]Write to MH i2c: D1 01 00 14 0E 01 F4 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: D1 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: D1 01 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: D1 01 00 14 0E 00 F3 [11:13:28]Write to MH i2c: 01 00 00 15 0E 23 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]OFD Sender: No OFD packet to send [11:13:29]*** Cut start [11:13:29]*** Partial cut [11:13:29]*** CUTSNS_PIN = 1 [11:13:29]*** CUTSNS_PIN = 0 [11:13:29]*** Brake cut motor [11:13:29]Read from MH i2c: 01 [11:13:29]MH_I2C_Read... [11:13:29]*** Stop cut motor [11:13:29]*** Cut end [11:13:29]Read from MH i2c: 01 07 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: 01 07 00 15 0E 00 00 00 00 00 FF 0F 38 [11:13:29]process_action close_receipt done [11:13:29]requested_data is exist [11:13:29]produce_requested_data [11:13:29]requested_item fm.sn is exist - process it [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 11 00 00 [11:13:29]Write to MH i2c: E2 08 00 16 0E 80 11 00 00 00 00 00 00 9E [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 17 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 17 00 16 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F5 [11:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:13:29]wFMCommunicate OK [11:13:29]requested_item fd.num is exist - process it [11:13:29]SAM_PROTO_GetFieldsCounters [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 13 00 00 [11:13:29]Write to MH i2c: E2 08 00 17 0E 80 13 00 00 00 00 00 00 A1 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:29]Read from MH i2c: E2 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 62 00 [11:13:29]MH_I2C_Read... [11:13:29]Read from MH i2c: E2 62 00 17 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 80 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [11:13: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 80 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:29]wFMCommunicate OK [11:13:29]SAM_PROTO_GetFieldsCounters done [11:13:29]requested_item shift.num is exist - process it [11:13:29]requested_item shift.opened is exist - process it [11:13:29]req_shift_opened [11:13:29]FM_GetShiftState [11:13:29]SAM_PROTO_GetShiftState [11:13:29]wFMCommunicate request_size=4 [11:13:29]MH_SAM_APDU [11:13:29]CAPDU: 80 13 01 00 [11:13:29]Write to MH i2c: E2 08 00 18 0E 80 13 01 00 00 00 00 00 A3 [11:13:29]Write i2c OK [11:13:29]MH_I2C_Read... [11:13:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:30]Read from MH i2c: E2 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: E2 0E 00 18 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 3F [11:13:30]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:13:30]wFMCommunicate OK [11:13:30]SAM_PROTO_GetShiftState done [11:13:30]FM_GetShiftState done [11:13:30]req_shift_opened done [11:13:30]requested_item shift.open_date is exist - process it [11:13:30]req_shift_open_date [11:13:30]req_shift_open_date done [11:13:30]produce_requested_data done [11:13:30]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60544,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:13:30]process_action_free close_receipt [11:13:30]json_value_free [11:13:30]json_value_free done [11:13:30]process_json_proto returns [11:13:30]Send response to host [11:13:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60544,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:13:30]free response buf [11:13:30]execute_script done [11:13:30]execute_script returns [11:13:30]free content buf [11:13:30]Sock 9.Close socket [11:13:30]Sock 9.Thread stoped [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [11:20:54]OFD Sender: No OFD packet to send [11:20:59]OFD Sender: No OFD packet to send [11:21:04]OFD Sender: No OFD packet to send [11:21:09]OFD Sender: No OFD packet to send [11:21:14]OFD Sender: No OFD packet to send [11:21:19]OFD Sender: No OFD packet to send [11:21:24]OFD Sender: No OFD packet to send [11:21:29]OFD Sender: No OFD packet to send [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [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]accept exits with 7 [11:29:59]New connection [11:29:59]New thread 3067362660 created [11:29:59]Thread 3067219300 joined [11:29:59]Waiting for new connection... [11:29:59] Sock 7.Parse request [11:29:59]Sock 7.Check first char [11:29:59]Sock 7.First char is OK [11:29:59]request: POST /json_proto HTTP/1.0 [11:29:59]Method: POST [11:29:59]URL: /json_proto [11:29:59]Method is POST - this is cgi request [11:29:59]url: /json_proto [11:29:59]query_string will be loaded in cgi processing [11:29:59]execute_cgi json_proto POST (null) [11:29:59]execute_cgi path=json_proto method=POST [11:29:59]POST find Content-Length [11:29:59]Host: 172.17.42.196:8080 [11:29:59]Content-Length: 774 [11:29:59]Content-Type: application/json [11:29:59] [11:29:59]POST finish read [11:29:59]Found Content-Length = 774 [11:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:59]execute_script... [11:29:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:59]POST & json_proto [11:29:59]process_json_proto [11:29:59]json parsed OK: [11:29:59]protocol is kg_v1.0 [11:29:59]action value=close_receipt [11:29:59]process_action close_receipt [11:29:59]cmd_close_receipt [11:29:59]MH_GetDate [11:29:59]Write to MH i2c: F0 00 00 19 0E 16 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: F0 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: F0 09 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: F0 09 00 19 0E 00 38 24 1E 67 FF C4 6B 64 92 [11:29:59]GetLastDocTimeStamp 1730027606 [11:29:59]current date 1730028600 [11:29:59]FM_GetShiftState [11:29:59]SAM_PROTO_GetShiftState [11:29:59]wFMCommunicate request_size=4 [11:29:59]MH_SAM_APDU [11:29:59]CAPDU: 80 13 01 00 [11:29:59]Write to MH i2c: E2 08 00 1A 0E 80 13 01 00 00 00 00 00 A5 [11:29:59]Write i2c OK [11:29:59]MH_I2C_Read... [11:29:59]OFD Sender: No OFD packet to send [11:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:59]Read from MH i2c: E2 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 0E 00 [11:29:59]MH_I2C_Read... [11:29:59]Read from MH i2c: E2 0E 00 1A 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 41 [11:29:59]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:29:59]wFMCommunicate OK [11:29:59]SAM_PROTO_GetShiftState done [11:29:59]FM_GetShiftState done [11:29:59]opened in 1729989505 [11:29:59]opened+sec_in_day 1730075905 [11:29:59]quantity*price = 100050 [11:29:59]sum+1 = 100052 [11:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 77 27.10.2024 11:30 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60545 ФПД: 173266605281991 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113000&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60545&fm=173266605281991&tin=02508201610067®Number=0000000000091622&sum=100051 [11:30:00]StoreToDocumentArchive [11:30:00]shift 532 fd 60545 [11:30:00]save to /storage/0532/doc_00060545 [11:30:00]save last doc name /storage/0532/doc_00060545 to /storage/kkm_last_doc_name [11:30:00]save OK [11:30:00]Clear old archive folders... [11:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:30:00]tlvbuf is 00210F60 [11:30:00]SAM_PROTO_ClearQueue [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 09 00 00 [11:30:00]Write to MH i2c: E2 08 00 27 0E 80 09 00 00 00 00 00 00 A7 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [11:30:00]RAPDU: 90 00 [11:30:00]wFMCommunicate OK [11:30:00]SAM_PROTO_ClearQueue done [11:30:00]KKMCreateOFDPacket [11:30:00]OFDProtocolAddRootSTLVToBuf [11:30:00]FM_MakeSignedData [11:30:00]FM_MakeSignedData [11:30:00]SAM_PROTO_SignData [11:30:00]wFMCommunicate request_size=4 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 0D 01 02 [11:30:00]Write to MH i2c: E2 08 00 28 0E 80 0D 01 02 00 00 00 00 AF [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:00]Read from MH i2c: E2 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 [11:30:00]MH_I2C_Read... [11:30:00]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [11:30:00]RAPDU: 90 00 [11:30:00]wFMCommunicate OK [11:30:00]wFMCommunicate request_size=255 [11:30:00]MH_SAM_APDU [11:30:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 38 24 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EC 00 00 35 04 06 00 [11:30:00]Write to MH i2c: E2 02 01 29 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 38 24 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EC 00 00 35 04 06 00 00 00 32 [11:30:00]Write i2c OK [11:30:00]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=11 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 02 02 06 9D 95 C6 75 92 C7 [11:30:01]Write to MH i2c: E2 0E 00 2A 0E 80 0D 02 02 06 00 9D 95 C6 75 92 C7 00 00 84 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [11:30:01]RAPDU: 90 00 [11:30:01]wFMCommunicate OK [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 0D 03 02 [11:30:01]Write to MH i2c: E2 08 00 2B 0E 80 0D 03 02 00 00 00 00 B4 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0B 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 0B 00 2B 0E 00 50 ED FE C3 59 6B CB 01 90 00 43 [11:30:01]RAPDU: 50 ED FE C3 59 6B CB 01 90 00 [11:30:01]wFMCommunicate OK [11:30:01]SAM_PROTO_SignData done [11:30:01]FM_MakeSignedData done [11:30:01]CreateOFDProtocolMessage [11:30:01]wFMCommunicate request_size=4 [11:30:01]MH_SAM_APDU [11:30:01]CAPDU: 80 11 00 00 [11:30:01]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:01]Read from MH i2c: E2 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0B [11:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:30:01]wFMCommunicate OK [11:30:01]CreateOFDProtocolMessage done [11:30:01]OFDSenderStorePacket 60545 [11:30:01]StoreOFDPacket docnum=60545 [11:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 01 00 00 BA C8 08 01 15 F1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 38 24 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EC 00 00 35 04 06 00 9D 95 C6 75 92 C7 50 ED FE C3 59 6B CB 01 [11:30:01]CheckFolder [11:30:01]dirname=/storage/ofd_packets [11:30:01]CheckFolder done [11:30:01]ProducePacketName [11:30:01]name=ofd_packets/00060545 [11:30:01]NVStorageSaveData ofd_packets/00060545 [11:30:01]File name is /storage/ofd_packets/00060545 [11:30:01]Write 302 bytes [11:30:01]NVStorageSaveData done [11:30:01]OFDSenderStorePacket done [11:30:01]KKMCreateOFDPacket done [11:30:01]NVStorageSaveData kkm_last_timestamp [11:30:01]File name is /storage/kkm_last_timestamp [11:30:01]Write 4 bytes [11:30:01]NVStorageSaveData done [11:30:01]ExternCall_PrintAddStr [11:30:01]wPrintStart [11:30:01]Write to MH i2c: 01 00 00 2D 0E 3B [11:30:01]Write i2c OK [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 [11:30:01]MH_I2C_Read... [11:30:01]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 FF 0F 50 [11:30:01]RasterBufferAndPrint [11:30:01]line Счет N : (1)3311636 [11:30:01]line ИНН: 02508201610067 [11:30:01]line Контрольно-Кассовый Чек [11:30:01]line ПРОДАЖА [11:30:01]line ТРК (МРК, ГНК) : 5 [11:30:01]line Товар: 2710194210 [11:30:01]line ДТ(л)-К-5 [11:30:01]line 13.130 * 76.20 [11:30:01]line = 1000.51 [11:30:01]line НДС 12% НСП 1% [11:30:01]line > о реализуемом товаре [11:30:01]line ИТОГО: 1000.51 [11:30:01]line НСП 1% : 8.85 [11:30:01]line НДС 12% : 106.25 [11:30:01]line Наличными: 0.00 [11:30:01]line Безнал.: 1000.51 [11:30:01]line Место: АЗС № 87 "Партнер Нефть" [11:30:01]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:30:01]line СНО: Общий режим [11:30:01]line Чек 77 27.10.2024 11:30 [11:30:01]line Смена: 532 ФФД: 1.0 [11:30:01]line ЗНМ: 0300000084 [11:30:01]line РНМ: 0000000000091622 [11:30:01]line Версия ККМ: 001 [11:30:01]line Платежная система: Mbank [11:30:01]line ФМ: 0000000000874674 [11:30:01]line ФД: 60545 [11:30:01]line ФПД: 173266605281991 [11:30:01]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113000&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60545&fm=173266605281991&tin=02508201610067®Number=0000000000091622&sum=100051 [11:30:01]OFD Sender: Processing packet 60545 [packets to send 30, broken 29] [11:30:01]ProducePacketName [11:30:01]name=ofd_packets/00060545 [11:30:01]OFD Sender: To server: pG, [11:30:01]CommunicateWithHost lk.salyk.kg:30040 [11:30:01]ConnectInit lk.salyk.kg [11:30:01]written 0, free lines is 4095 [11:30:01]Connected sock=10 [11:30: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 36 37 34 10 01 00 00 BA C8 08 01 15 F1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 38 24 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 81 EC 00 00 35 04 06 00 9D 95 C6 75 92 C7 50 ED FE C3 59 6B CB 01 [11:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 9C 31 47 00 9B 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 36 37 34 10 04 04 00 81 EC 00 00 F4 03 04 00 20 CA 1D 67 B6 04 01 00 00 D6 43 E7 D7 8D 3E 5B 94 [11:30:01]CommunicateWithHost err = 0 [11:30:01]CheckOFDResponse [11:30:01]1017 (14) - 77093643461234 [11:30:01]1041 (16) - 0000000000874674 [11:30:01]1040 (4) - 60545 [11:30:01]1012 (4) - 27.10.2024 05:05 [11:30:01]1206 (1) - 0 [11:30:01]OFD Sender: Remove packet 60545 [11:30:01]ProducePacketName [11:30:01]name=ofd_packets/00060545 [11:30:01]NVStorageDeleteData [11:30:02]Write to MH i2c: 01 00 00 56 0E 64 [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: 01 07 00 56 0E 00 00 00 00 00 FB 0C 72 [11:30:02]RasterBufferAndPrint [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]line [11:30:02]written 0, free lines is 3329 [11:30:02]MH_Cut [11:30:02]Write to MH i2c: D1 01 00 5D 0E 01 3D [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 [11:30:02]MH_I2C_Read... [11:30:02]Read from MH i2c: D1 01 00 5D 0E 00 3C [11:30:02]Write to MH i2c: 01 00 00 5E 0E 6C [11:30:02]Write i2c OK [11:30:02]MH_I2C_Read... [11:30:02]OFD Sender: No OFD packet to send [11:30:02]*** Cut start [11:30:02]*** Partial cut [11:30:02]*** CUTSNS_PIN = 1 [11:30:02]*** CUTSNS_PIN = 0 [11:30:03]*** Brake cut motor [11:30:03]Read from MH i2c: 01 [11:30:03]MH_I2C_Read... [11:30:03]*** Stop cut motor [11:30:03]*** Cut end [11:30:03]Read from MH i2c: 01 07 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: 01 07 00 5E 0E 00 00 00 00 00 FF 0F 81 [11:30:03]process_action close_receipt done [11:30:03]requested_data is exist [11:30:03]produce_requested_data [11:30:03]requested_item fm.sn is exist - process it [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 11 00 00 [11:30:03]Write to MH i2c: E2 08 00 5F 0E 80 11 00 00 00 00 00 00 E7 [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 17 00 5F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 3E [11:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:30:03]wFMCommunicate OK [11:30:03]requested_item fd.num is exist - process it [11:30:03]SAM_PROTO_GetFieldsCounters [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 13 00 00 [11:30:03]Write to MH i2c: E2 08 00 60 0E 80 13 00 00 00 00 00 00 EA [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 62 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 62 00 60 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 81 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [11:30: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 81 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_GetFieldsCounters done [11:30:03]requested_item shift.num is exist - process it [11:30:03]requested_item shift.opened is exist - process it [11:30:03]req_shift_opened [11:30:03]FM_GetShiftState [11:30:03]SAM_PROTO_GetShiftState [11:30:03]wFMCommunicate request_size=4 [11:30:03]MH_SAM_APDU [11:30:03]CAPDU: 80 13 01 00 [11:30:03]Write to MH i2c: E2 08 00 61 0E 80 13 01 00 00 00 00 00 EC [11:30:03]Write i2c OK [11:30:03]MH_I2C_Read... [11:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:03]Read from MH i2c: E2 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0E 00 [11:30:03]MH_I2C_Read... [11:30:03]Read from MH i2c: E2 0E 00 61 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 88 [11:30:03]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:30:03]wFMCommunicate OK [11:30:03]SAM_PROTO_GetShiftState done [11:30:03]FM_GetShiftState done [11:30:03]req_shift_opened done [11:30:03]requested_item shift.open_date is exist - process it [11:30:03]req_shift_open_date [11:30:03]req_shift_open_date done [11:30:03]produce_requested_data done [11:30:03]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60545,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:30:03]process_action_free close_receipt [11:30:03]json_value_free [11:30:03]json_value_free done [11:30:03]process_json_proto returns [11:30:03]Send response to host [11:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60545,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:30:03]free response buf [11:30:03]execute_script done [11:30:03]execute_script returns [11:30:03]free content buf [11:30:03]Sock 7.Close socket [11:30:03]Sock 7.Thread stoped [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:38]accept exits with 9 [11:33:38]New connection [11:33:38]New thread 3067219300 created [11:33:38]Thread 3067362660 joined [11:33:38]Waiting for new connection... [11:33:38] Sock 9.Parse request [11:33:38]Sock 9.Check first char [11:33:38]Sock 9.First char is OK [11:33:38]request: POST /json_proto HTTP/1.0 [11:33:38]Method: POST [11:33:38]URL: /json_proto [11:33:38]Method is POST - this is cgi request [11:33:38]url: /json_proto [11:33:38]query_string will be loaded in cgi processing [11:33:38]execute_cgi json_proto POST (null) [11:33:38]execute_cgi path=json_proto method=POST [11:33:38]POST find Content-Length [11:33:38]Host: 172.17.42.196:8080 [11:33:38]Content-Length: 678 [11:33:38]Content-Type: application/json [11:33:38] [11:33:38]POST finish read [11:33:38]Found Content-Length = 678 [11:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:38]execute_script... [11:33:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:38]POST & json_proto [11:33:38]process_json_proto [11:33:38]json parsed OK: [11:33:38]protocol is kg_v1.0 [11:33:38]action value=close_receipt [11:33:38]process_action close_receipt [11:33:38]cmd_close_receipt [11:33:38]MH_GetDate [11:33:38]Write to MH i2c: F0 00 00 62 0E 5F [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: F0 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: F0 09 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: F0 09 00 62 0E 00 13 25 1E 67 FF C4 6B 64 B7 [11:33:38]GetLastDocTimeStamp 1730028600 [11:33:38]current date 1730028819 [11:33:38]FM_GetShiftState [11:33:38]SAM_PROTO_GetShiftState [11:33:38]wFMCommunicate request_size=4 [11:33:38]MH_SAM_APDU [11:33:38]CAPDU: 80 13 01 00 [11:33:38]Write to MH i2c: E2 08 00 63 0E 80 13 01 00 00 00 00 00 EE [11:33:38]Write i2c OK [11:33:38]MH_I2C_Read... [11:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:38]Read from MH i2c: E2 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 0E 00 [11:33:38]MH_I2C_Read... [11:33:38]Read from MH i2c: E2 0E 00 63 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 8A [11:33:38]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:33:38]wFMCommunicate OK [11:33:38]SAM_PROTO_GetShiftState done [11:33:38]FM_GetShiftState done [11:33:38]opened in 1729989505 [11:33:38]opened+sec_in_day 1730075905 [11:33:38]quantity*price = 40006 [11:33:38]sum+1 = 40007 [11:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 78 27.10.2024 11:33 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60546 ФПД: 153908382181275 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113339&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60546&fm=153908382181275&tin=02508201610067®Number=0000000000091622&sum=40000 [11:33:39]StoreToDocumentArchive [11:33:39]shift 532 fd 60546 [11:33:39]save to /storage/0532/doc_00060546 [11:33:39]save last doc name /storage/0532/doc_00060546 to /storage/kkm_last_doc_name [11:33:39]save OK [11:33:39]Clear old archive folders... [11:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:39]tlvbuf is 001EDAE0 [11:33:39]SAM_PROTO_ClearQueue [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 09 00 00 [11:33:39]Write to MH i2c: E2 08 00 70 0E 80 09 00 00 00 00 00 00 F0 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [11:33:39]RAPDU: 90 00 [11:33:39]wFMCommunicate OK [11:33:39]SAM_PROTO_ClearQueue done [11:33:39]KKMCreateOFDPacket [11:33:39]OFDProtocolAddRootSTLVToBuf [11:33:39]FM_MakeSignedData [11:33:39]FM_MakeSignedData [11:33:39]SAM_PROTO_SignData [11:33:39]wFMCommunicate request_size=4 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 0D 01 02 [11:33:39]Write to MH i2c: E2 08 00 71 0E 80 0D 01 02 00 00 00 00 F8 [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:39]Read from MH i2c: E2 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 [11:33:39]MH_I2C_Read... [11:33:39]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [11:33:39]RAPDU: 90 00 [11:33:39]wFMCommunicate OK [11:33:39]wFMCommunicate request_size=255 [11:33:39]MH_SAM_APDU [11:33:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 13 25 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EC 00 00 35 04 06 00 8B [11:33:39]Write to MH i2c: E2 02 01 72 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 13 25 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EC 00 00 35 04 06 00 8B 00 00 6E [11:33:39]Write i2c OK [11:33:39]MH_I2C_Read... [11:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:40]Read from MH i2c: E2 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 03 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [11:33:40]RAPDU: 90 00 [11:33:40]wFMCommunicate OK [11:33:40]wFMCommunicate request_size=10 [11:33:40]MH_SAM_APDU [11:33:40]CAPDU: 80 0D 02 02 05 FA 96 72 A7 9B [11:33:40]Write to MH i2c: E2 0D 00 73 0E 80 0D 02 02 05 00 FA 96 72 A7 9B 00 00 49 [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:40]Read from MH i2c: E2 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 03 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [11:33:40]RAPDU: 90 00 [11:33:40]wFMCommunicate OK [11:33:40]wFMCommunicate request_size=4 [11:33:40]MH_SAM_APDU [11:33:40]CAPDU: 80 0D 03 02 [11:33:40]Write to MH i2c: E2 08 00 74 0E 80 0D 03 02 00 00 00 00 FD [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:40]Read from MH i2c: E2 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 0B 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 0B 00 74 0E 00 E4 89 6B EB 78 FF 68 AA 90 00 4A [11:33:40]RAPDU: E4 89 6B EB 78 FF 68 AA 90 00 [11:33:40]wFMCommunicate OK [11:33:40]SAM_PROTO_SignData done [11:33:40]FM_MakeSignedData done [11:33:40]CreateOFDProtocolMessage [11:33:40]wFMCommunicate request_size=4 [11:33:40]MH_SAM_APDU [11:33:40]CAPDU: 80 11 00 00 [11:33:40]Write to MH i2c: E2 08 00 75 0E 80 11 00 00 00 00 00 00 FD [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:40]Read from MH i2c: E2 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 17 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: E2 17 00 75 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 54 [11:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:33:40]wFMCommunicate OK [11:33:40]CreateOFDProtocolMessage done [11:33:40]OFDSenderStorePacket 60546 [11:33:40]StoreOFDPacket docnum=60546 [11:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 0C A7 07 01 45 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 13 25 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EC 00 00 35 04 06 00 8B FA 96 72 A7 9B E4 89 6B EB 78 FF 68 AA [11:33:40]CheckFolder [11:33:40]dirname=/storage/ofd_packets [11:33:40]CheckFolder done [11:33:40]ProducePacketName [11:33:40]name=ofd_packets/00060546 [11:33:40]NVStorageSaveData ofd_packets/00060546 [11:33:40]File name is /storage/ofd_packets/00060546 [11:33:40]Write 301 bytes [11:33:40]NVStorageSaveData done [11:33:40]OFDSenderStorePacket done [11:33:40]KKMCreateOFDPacket done [11:33:40]NVStorageSaveData kkm_last_timestamp [11:33:40]File name is /storage/kkm_last_timestamp [11:33:40]Write 4 bytes [11:33:40]NVStorageSaveData done [11:33:40]ExternCall_PrintAddStr [11:33:40]wPrintStart [11:33:40]Write to MH i2c: 01 00 00 76 0E 84 [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 07 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 FF 0F 99 [11:33:40]RasterBufferAndPrint [11:33:40]line Счет N : (1)3311641 [11:33:40]line ИНН: 02508201610067 [11:33:40]line Контрольно-Кассовый Чек [11:33:40]line ПРОДАЖА [11:33:40]line ТРК (МРК, ГНК) : 42 [11:33:40]line Товар: 2710124130 [11:33:40]line Аи-92-К-4 [11:33:40]line 5.980 * 66.90 [11:33:40]line = 400.06 [11:33:40]line НДС 12% НСП 1% [11:33:40]line > о реализуемом товаре [11:33:40]line ОКРУГЛЕНИЕ: -0.06 [11:33:40]line ИТОГО: 400.00 [11:33:40]line Внесено: 400.00 [11:33:40]line СДАЧА: 0.00 [11:33:40]line НСП 1% : 3.54 [11:33:40]line НДС 12% : 42.48 [11:33:40]line Наличными: 400.00 [11:33:40]line Безнал.: 0.00 [11:33:40]line Место: АЗС № 87 "Партнер Нефть" [11:33:40]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:33:40]line СНО: Общий режим [11:33:40]line Чек 78 27.10.2024 11:33 [11:33:40]line Смена: 532 ФФД: 1.0 [11:33:40]line ЗНМ: 0300000084 [11:33:40]line РНМ: 0000000000091622 [11:33:40]line Версия ККМ: 001 [11:33:40]line ФМ: 0000000000874674 [11:33:40]line ФД: 60546 [11:33:40]line ФПД: 153908382181275 [11:33:40]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113339&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60546&fm=153908382181275&tin=02508201610067®Number=0000000000091622&sum=40000 [11:33:40]OFD Sender: Processing packet 60546 [packets to send 30, broken 29] [11:33:40]ProducePacketName [11:33:40]name=ofd_packets/00060546 [11:33:40]OFD Sender: To server: pG, [11:33:40]CommunicateWithHost lk.salyk.kg:30040 [11:33:40]ConnectInit lk.salyk.kg [11:33:40]written 0, free lines is 4095 [11:33:40]Write to MH i2c: 01 00 00 A1 0E AF [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 07 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 CD 0C 8F [11:33:40]RasterBufferAndPrint [11:33:40]line [11:33:40]line [11:33:40]line [11:33:40]line [11:33:40]line [11:33:40]written 0, free lines is 3280 [11:33:40]MH_Cut [11:33:40]Write to MH i2c: D1 01 00 A8 0E 01 88 [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: D1 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: D1 01 00 [11:33:40]MH_I2C_Read... [11:33:40]Read from MH i2c: D1 01 00 A8 0E 00 87 [11:33:40]Write to MH i2c: 01 00 00 A9 0E B7 [11:33:40]Write i2c OK [11:33:40]MH_I2C_Read... [11:33:41]*** Cut start [11:33:41]*** Partial cut [11:33:41]*** CUTSNS_PIN = 1 [11:33:41]*** CUTSNS_PIN = 0 [11:33:42]*** Brake cut motor [11:33:42]Read from MH i2c: 01 [11:33:42]MH_I2C_Read... [11:33:42]*** Stop cut motor [11:33:42]*** Cut end [11:33:42]Read from MH i2c: 01 07 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [11:33:42]process_action close_receipt done [11:33:42]requested_data is exist [11:33:42]produce_requested_data [11:33:42]requested_item fm.sn is exist - process it [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 11 00 00 [11:33:42]Write to MH i2c: E2 08 00 AA 0E 80 11 00 00 00 00 00 00 32 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 17 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 17 00 AA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 89 [11:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:33:42]wFMCommunicate OK [11:33:42]requested_item fd.num is exist - process it [11:33:42]SAM_PROTO_GetFieldsCounters [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 13 00 00 [11:33:42]Write to MH i2c: E2 08 00 AB 0E 80 13 00 00 00 00 00 00 35 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 62 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 62 00 AB 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 82 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [11:33:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 82 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:42]wFMCommunicate OK [11:33:42]SAM_PROTO_GetFieldsCounters done [11:33:42]requested_item shift.num is exist - process it [11:33:42]requested_item shift.opened is exist - process it [11:33:42]req_shift_opened [11:33:42]FM_GetShiftState [11:33:42]SAM_PROTO_GetShiftState [11:33:42]wFMCommunicate request_size=4 [11:33:42]MH_SAM_APDU [11:33:42]CAPDU: 80 13 01 00 [11:33:42]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [11:33:42]Write i2c OK [11:33:42]MH_I2C_Read... [11:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:42]Read from MH i2c: E2 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 0E 00 [11:33:42]MH_I2C_Read... [11:33:42]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D3 [11:33:42]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:33:42]wFMCommunicate OK [11:33:42]SAM_PROTO_GetShiftState done [11:33:42]FM_GetShiftState done [11:33:42]req_shift_opened done [11:33:42]requested_item shift.open_date is exist - process it [11:33:42]req_shift_open_date [11:33:42]req_shift_open_date done [11:33:42]produce_requested_data done [11:33:42]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60546,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:33:42]process_action_free close_receipt [11:33:42]json_value_free [11:33:42]json_value_free done [11:33:42]process_json_proto returns [11:33:42]Send response to host [11:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60546,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:33:42]free response buf [11:33:42]execute_script done [11:33:42]execute_script returns [11:33:42]free content buf [11:33:42]Sock 9.Close socket [11:33:42]Sock 9.Thread stoped [11:35:52]ConnectInit Can't connect to host [11:35:52]CommunicateWithHost connect error [11:35:52]CommunicateWithHost err = -1 [11:35:52]OFD Sender: Server communicate error [11:35:57]OFD Sender: Processing packet 60546 [packets to send 30, broken 29] [11:35:57]ProducePacketName [11:35:57]name=ofd_packets/00060546 [11:35:57]OFD Sender: To server: pG, [11:35:57]CommunicateWithHost lk.salyk.kg:30040 [11:35:57]ConnectInit lk.salyk.kg [11:35:57]Connected sock=9 [11:35: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 36 37 34 0F 01 00 00 0C A7 07 01 45 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 13 25 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 82 EC 00 00 35 04 06 00 8B FA 96 72 A7 9B E4 89 6B EB 78 FF 68 AA [11:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 CB D7 47 00 43 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 36 37 34 10 04 04 00 82 EC 00 00 F4 03 04 00 84 CB 1D 67 B6 04 01 00 00 6D 1A 47 39 9F 13 62 0F [11:35:57]CommunicateWithHost err = 0 [11:35:57]CheckOFDResponse [11:35:57]1017 (14) - 77093643461234 [11:35:57]1041 (16) - 0000000000874674 [11:35:57]1040 (4) - 60546 [11:35:57]1012 (4) - 27.10.2024 05:11 [11:35:57]1206 (1) - 0 [11:35:57]OFD Sender: Remove packet 60546 [11:35:57]ProducePacketName [11:35:57]name=ofd_packets/00060546 [11:35:57]NVStorageDeleteData [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:45]accept exits with 7 [11:40:45]New connection [11:40:45]New thread 3067362660 created [11:40:45]Thread 3067219300 joined [11:40:45]Waiting for new connection... [11:40:45] Sock 7.Parse request [11:40:45]Sock 7.Check first char [11:40:45]Sock 7.First char is OK [11:40:45]request: POST /json_proto HTTP/1.0 [11:40:45]Method: POST [11:40:45]URL: /json_proto [11:40:45]Method is POST - this is cgi request [11:40:45]url: /json_proto [11:40:45]query_string will be loaded in cgi processing [11:40:45]execute_cgi json_proto POST (null) [11:40:45]execute_cgi path=json_proto method=POST [11:40:45]POST find Content-Length [11:40:45]Host: 172.17.42.196:8080 [11:40:45]Content-Length: 628 [11:40:45]Content-Type: application/json [11:40:45] [11:40:45]POST finish read [11:40:45]Found Content-Length = 628 [11:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200172", "tax_sys" : 0, "items" : [ { "code": "48743907", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XSS Impulse Purple", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:45]execute_script... [11:40:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200172", "tax_sys" : 0, "items" : [ { "code": "48743907", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XSS Impulse Purple", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:45]POST & json_proto [11:40:45]process_json_proto [11:40:45]json parsed OK: [11:40:45]protocol is kg_v1.0 [11:40:45]action value=close_receipt [11:40:45]process_action close_receipt [11:40:45]cmd_close_receipt [11:40:45]MH_GetDate [11:40:45]Write to MH i2c: F0 00 00 AD 0E AA [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: F0 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: F0 09 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: F0 09 00 AD 0E 00 BE 26 1E 67 FF C4 6B 64 AE [11:40:45]GetLastDocTimeStamp 1730028819 [11:40:45]current date 1730029246 [11:40:45]FM_GetShiftState [11:40:45]SAM_PROTO_GetShiftState [11:40:45]wFMCommunicate request_size=4 [11:40:45]MH_SAM_APDU [11:40:45]CAPDU: 80 13 01 00 [11:40:45]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [11:40:45]Write i2c OK [11:40:45]MH_I2C_Read... [11:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:45]Read from MH i2c: E2 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 0E 00 [11:40:45]MH_I2C_Read... [11:40:45]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D5 [11:40:45]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:40:45]wFMCommunicate OK [11:40:45]SAM_PROTO_GetShiftState done [11:40:45]FM_GetShiftState done [11:40:45]opened in 1729989505 [11:40:45]opened+sec_in_day 1730075905 [11:40:45]quantity*price = 11100 [11:40:45]sum+1 = 11101 [11:40:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 79 27.10.2024 11:40 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60547 ФПД: 211737974268315 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114046&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60547&fm=211737974268315&tin=02508201610067®Number=0000000000091622&sum=11100 0 [11:40:46]StoreToDocumentArchive [11:40:46]shift 532 fd 60547 [11:40:46]save to /storage/0532/doc_00060547 [11:40:46]save last doc name /storage/0532/doc_00060547 to /storage/kkm_last_doc_name [11:40:46]save OK [11:40:46]Clear old archive folders... [11:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:40:46]tlvbuf is 0020DAD0 [11:40:46]SAM_PROTO_ClearQueue [11:40:46]wFMCommunicate request_size=4 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 09 00 00 [11:40:46]Write to MH i2c: E2 08 00 BB 0E 80 09 00 00 00 00 00 00 3B [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:46]Read from MH i2c: E2 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 03 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [11:40:46]RAPDU: 90 00 [11:40:46]wFMCommunicate OK [11:40:46]SAM_PROTO_ClearQueue done [11:40:46]KKMCreateOFDPacket [11:40:46]OFDProtocolAddRootSTLVToBuf [11:40:46]FM_MakeSignedData [11:40:46]FM_MakeSignedData [11:40:46]SAM_PROTO_SignData [11:40:46]wFMCommunicate request_size=4 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 0D 01 02 [11:40:46]Write to MH i2c: E2 08 00 BC 0E 80 0D 01 02 00 00 00 00 43 [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:46]Read from MH i2c: E2 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 03 00 [11:40:46]MH_I2C_Read... [11:40:46]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [11:40:46]RAPDU: 90 00 [11:40:46]wFMCommunicate OK [11:40:46]wFMCommunicate request_size=255 [11:40:46]MH_SAM_APDU [11:40:46]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 39 30 37 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 53 20 49 6D 70 75 6C 73 65 20 50 75 72 70 6C 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BE 26 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 [11:40:46]Write to MH i2c: E2 02 01 BD 0E 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 39 30 37 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 53 20 49 6D 70 75 6C 73 65 20 50 75 72 70 6C 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BE 26 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 00 00 83 [11:40:46]Write i2c OK [11:40:46]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 0D 02 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 BD 0E 00 90 00 3F [11:40:47]RAPDU: 90 00 [11:40:47]wFMCommunicate OK [11:40:47]wFMCommunicate request_size=39 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EC 00 00 35 04 06 00 C0 93 16 BD E1 9B [11:40:47]Write to MH i2c: E2 2A 00 BE 0E 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EC 00 00 35 04 06 00 C0 93 16 BD E1 9B 00 00 16 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 0D 02 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 BE 0E 00 90 00 40 [11:40:47]RAPDU: 90 00 [11:40:47]wFMCommunicate OK [11:40:47]wFMCommunicate request_size=4 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 0D 03 02 [11:40:47]Write to MH i2c: E2 08 00 BF 0E 80 0D 03 02 00 00 00 00 48 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:47]Read from MH i2c: E2 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0B 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 0B 00 BF 0E 00 AA 2B D7 23 C4 32 01 CB 90 00 DA [11:40:47]RAPDU: AA 2B D7 23 C4 32 01 CB 90 00 [11:40:47]wFMCommunicate OK [11:40:47]SAM_PROTO_SignData done [11:40:47]FM_MakeSignedData done [11:40:47]CreateOFDProtocolMessage [11:40:47]wFMCommunicate request_size=4 [11:40:47]MH_SAM_APDU [11:40:47]CAPDU: 80 11 00 00 [11:40:47]Write to MH i2c: E2 08 00 C0 0E 80 11 00 00 00 00 00 00 48 [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:47]Read from MH i2c: E2 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 17 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: E2 17 00 C0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 9F [11:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:40:47]wFMCommunicate OK [11:40:47]CreateOFDProtocolMessage done [11:40:47]OFDSenderStorePacket 60547 [11:40:47]StoreOFDPacket docnum=60547 [11:40:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 2C 01 00 00 43 AD 24 01 3B A8 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 39 30 37 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 53 20 49 6D 70 75 6C 73 65 20 50 75 72 70 6C 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BE 26 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EC 00 00 35 04 06 00 C0 93 16 BD E1 9B AA 2B D7 23 C4 32 01 CB [11:40:47]CheckFolder [11:40:47]dirname=/storage/ofd_packets [11:40:47]CheckFolder done [11:40:47]ProducePacketName [11:40:47]name=ofd_packets/00060547 [11:40:47]NVStorageSaveData ofd_packets/00060547 [11:40:47]File name is /storage/ofd_packets/00060547 [11:40:47]Write 330 bytes [11:40:47]NVStorageSaveData done [11:40:47]OFDSenderStorePacket done [11:40:47]KKMCreateOFDPacket done [11:40:47]NVStorageSaveData kkm_last_timestamp [11:40:47]File name is /storage/kkm_last_timestamp [11:40:47]Write 4 bytes [11:40:47]NVStorageSaveData done [11:40:47]ExternCall_PrintAddStr [11:40:47]wPrintStart [11:40:47]Write to MH i2c: 01 00 00 C1 0E CF [11:40:47]Write i2c OK [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 07 00 [11:40:47]MH_I2C_Read... [11:40:47]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [11:40:47]RasterBufferAndPrint [11:40:47]line Счет N : (3)200172 [11:40:47]line ИНН: 02508201610067 [11:40:47]line Контрольно-Кассовый Чек [11:40:47]line ПРОДАЖА [11:40:47]line Товар: 48743907 [11:40:47]line Сигареты Winston XSS Impulse Purple [11:40:47]line 1.000 * 111.00 [11:40:47]line = 111.00 [11:40:47]line НДС 12% НСП 1% [11:40:47]line > о реализуемом товаре [11:40:47]line ИТОГО: 111.00 [11:40:47]line НСП 1% : 0.98 [11:40:47]line НДС 12% : 11.79 [11:40:47]line Наличными: 111.00 [11:40:47]line Безнал.: 0.00 [11:40:47]line Место: АЗС № 87 "Партнер Нефть" [11:40:47]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:40:47]line СНО: Общий режим [11:40:47]line Чек 79 27.10.2024 11:40 [11:40:47]line Смена: 532 ФФД: 1.0 [11:40:47]line ЗНМ: 0300000084 [11:40:47]line РНМ: 0000000000091622 [11:40:47]line Версия ККМ: 001 [11:40:47]line ФМ: 0000000000874674 [11:40:47]line ФД: 60547 [11:40:47]line ФПД: 211737974268315 [11:40:47]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114046&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60547&fm=211737974268315&tin=02508201610067®Number=0000000000091622&sum=11100 [11:40:47]line 0 [11:40:47]OFD Sender: Processing packet 60547 [packets to send 30, broken 29] [11:40:47]ProducePacketName [11:40:47]name=ofd_packets/00060547 [11:40:47]OFD Sender: To server: pG, [11:40:47]CommunicateWithHost lk.salyk.kg:30040 [11:40:47]ConnectInit lk.salyk.kg [11:40:47]written 0, free lines is 4095 [11:40:47]Connected sock=11 [11:40: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 36 37 34 2C 01 00 00 43 AD 24 01 3B A8 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 33 39 30 37 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 53 20 49 6D 70 75 6C 73 65 20 50 75 72 70 6C 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 04 00 00 00 00 07 04 06 00 5C 2B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 BE 26 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 83 EC 00 00 35 04 06 00 C0 93 16 BD E1 9B AA 2B D7 23 C4 32 01 CB [11:40:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 39 0E 47 00 11 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 36 37 34 10 04 04 00 83 EC 00 00 F4 03 04 00 A6 CC 1D 67 B6 04 01 00 00 E1 0E 6B 56 87 99 54 F6 [11:40:47]CommunicateWithHost err = 0 [11:40:47]CheckOFDResponse [11:40:47]1017 (14) - 77093643461234 [11:40:47]1041 (16) - 0000000000874674 [11:40:47]1040 (4) - 60547 [11:40:47]1012 (4) - 27.10.2024 05:16 [11:40:47]1206 (1) - 0 [11:40:47]OFD Sender: Remove packet 60547 [11:40:47]ProducePacketName [11:40:47]name=ofd_packets/00060547 [11:40:47]NVStorageDeleteData [11:40:48]Write to MH i2c: 01 00 00 EA 0E F8 [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 EA 0E 00 00 00 00 00 CB 0C D6 [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 3280 [11:40:48]MH_Cut [11:40:48]Write to MH i2c: D1 01 00 F1 0E 01 D1 [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 F1 0E 00 D0 [11:40:48]Write to MH i2c: 01 00 00 F2 0E 00 [11:40:48]Write i2c OK [11:40:48]MH_I2C_Read... [11:40:48]OFD Sender: No OFD packet to send [11:40:48]*** Cut start [11:40:48]*** Partial cut [11:40:48]*** CUTSNS_PIN = 1 [11:40:48]*** CUTSNS_PIN = 0 [11:40:49]*** Brake cut motor [11:40:49]Read from MH i2c: 01 [11:40:49]MH_I2C_Read... [11:40:49]*** Stop cut motor [11:40:49]*** Cut end [11:40:49]Read from MH i2c: 01 07 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: 01 07 00 F2 0E 00 00 00 00 00 FF 0F 15 [11:40:49]process_action close_receipt done [11:40:49]requested_data is exist [11:40:49]produce_requested_data [11:40:49]requested_item fm.sn is exist - process it [11:40:49]wFMCommunicate request_size=4 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 11 00 00 [11:40:49]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 17 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 17 00 F3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 D2 [11:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:40:49]wFMCommunicate OK [11:40:49]requested_item fd.num is exist - process it [11:40:49]SAM_PROTO_GetFieldsCounters [11:40:49]wFMCommunicate request_size=4 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 13 00 00 [11:40:49]Write to MH i2c: E2 08 00 F4 0E 80 13 00 00 00 00 00 00 7E [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 62 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 62 00 F4 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 83 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [11:40: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 83 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:49]wFMCommunicate OK [11:40:49]SAM_PROTO_GetFieldsCounters done [11:40:49]requested_item shift.num is exist - process it [11:40:49]requested_item shift.opened is exist - process it [11:40:49]req_shift_opened [11:40:49]FM_GetShiftState [11:40:49]SAM_PROTO_GetShiftState [11:40:49]wFMCommunicate request_size=4 [11:40:49]MH_SAM_APDU [11:40:49]CAPDU: 80 13 01 00 [11:40:49]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [11:40:49]Write i2c OK [11:40:49]MH_I2C_Read... [11:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:49]Read from MH i2c: E2 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 0E 00 [11:40:49]MH_I2C_Read... [11:40:49]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 1C [11:40:49]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:40:49]wFMCommunicate OK [11:40:49]SAM_PROTO_GetShiftState done [11:40:49]FM_GetShiftState done [11:40:49]req_shift_opened done [11:40:49]requested_item shift.open_date is exist - process it [11:40:49]req_shift_open_date [11:40:49]req_shift_open_date done [11:40:49]produce_requested_data done [11:40:49]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60547,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:40:49]process_action_free close_receipt [11:40:49]json_value_free [11:40:49]json_value_free done [11:40:49]process_json_proto returns [11:40:49]Send response to host [11:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60547,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:40:49]free response buf [11:40:49]execute_script done [11:40:49]execute_script returns [11:40:49]free content buf [11:40:49]Sock 7.Close socket [11:40:49]Sock 7.Thread stoped [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:30]accept exits with 9 [11:43:30]New connection [11:43:30]New thread 3067219300 created [11:43:30]Thread 3067362660 joined [11:43:30]Waiting for new connection... [11:43:30] Sock 9.Parse request [11:43:30]Sock 9.Check first char [11:43:30]Sock 9.First char is OK [11:43:30]request: POST /json_proto HTTP/1.0 [11:43:30]Method: POST [11:43:30]URL: /json_proto [11:43:30]Method is POST - this is cgi request [11:43:30]url: /json_proto [11:43:30]query_string will be loaded in cgi processing [11:43:30]execute_cgi json_proto POST (null) [11:43:30]execute_cgi path=json_proto method=POST [11:43:30]POST find Content-Length [11:43:30]Host: 172.17.42.196:8080 [11:43:30]Content-Length: 623 [11:43:30]Content-Type: application/json [11:43:30] [11:43:30]POST finish read [11:43:30]Found Content-Length = 623 [11:43:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200173", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:30]execute_script... [11:43:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200173", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:30]POST & json_proto [11:43:30]process_json_proto [11:43:30]json parsed OK: [11:43:30]protocol is kg_v1.0 [11:43:30]action value=close_receipt [11:43:30]process_action close_receipt [11:43:30]cmd_close_receipt [11:43:30]MH_GetDate [11:43:30]Write to MH i2c: F0 00 00 F6 0E F3 [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: F0 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: F0 09 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: F0 09 00 F6 0E 00 63 27 1E 67 FF C4 6B 64 9D [11:43:30]GetLastDocTimeStamp 1730029246 [11:43:30]current date 1730029411 [11:43:30]FM_GetShiftState [11:43:30]SAM_PROTO_GetShiftState [11:43:30]wFMCommunicate request_size=4 [11:43:30]MH_SAM_APDU [11:43:30]CAPDU: 80 13 01 00 [11:43:30]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [11:43:30]Write i2c OK [11:43:30]MH_I2C_Read... [11:43:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:30]Read from MH i2c: E2 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 0E 00 [11:43:30]MH_I2C_Read... [11:43:30]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 1E [11:43:30]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:43:30]wFMCommunicate OK [11:43:30]SAM_PROTO_GetShiftState done [11:43:30]FM_GetShiftState done [11:43:30]opened in 1729989505 [11:43:30]opened+sec_in_day 1730075905 [11:43:30]quantity*price = 14400 [11:43:30]sum+1 = 14401 [11:43:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 80 27.10.2024 11:43 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60548 ФПД: 211155419298991 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114331&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60548&fm=211155419298991&tin=02508201610067®Number=0000000000091622&sum=14400 0 [11:43:31]StoreToDocumentArchive [11:43:31]shift 532 fd 60548 [11:43:31]save to /storage/0532/doc_00060548 [11:43:31]save last doc name /storage/0532/doc_00060548 to /storage/kkm_last_doc_name [11:43:31]save OK [11:43:31]Clear old archive folders... [11:43:31]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:43:31]tlvbuf is 001E3B20 [11:43:31]SAM_PROTO_ClearQueue [11:43:31]wFMCommunicate request_size=4 [11:43:31]MH_SAM_APDU [11:43:31]CAPDU: 80 09 00 00 [11:43:31]Write to MH i2c: E2 08 00 04 0F 80 09 00 00 00 00 00 00 85 [11:43:31]Write i2c OK [11:43:31]MH_I2C_Read... [11:43:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:31]Read from MH i2c: E2 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: E2 03 00 [11:43:31]MH_I2C_Read... [11:43:31]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [11:43:31]RAPDU: 90 00 [11:43:31]wFMCommunicate OK [11:43:31]SAM_PROTO_ClearQueue done [11:43:31]KKMCreateOFDPacket [11:43:31]OFDProtocolAddRootSTLVToBuf [11:43:31]FM_MakeSignedData [11:43:31]FM_MakeSignedData [11:43:31]SAM_PROTO_SignData [11:43:31]wFMCommunicate request_size=4 [11:43:31]MH_SAM_APDU [11:43:31]CAPDU: 80 0D 01 02 [11:43:31]Write to MH i2c: E2 08 00 05 0F 80 0D 01 02 00 00 00 00 8D [11:43:32]Write i2c OK [11:43:32]MH_I2C_Read... [11:43:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:32]Read from MH i2c: E2 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 03 00 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [11:43:32]RAPDU: 90 00 [11:43:32]wFMCommunicate OK [11:43:32]wFMCommunicate request_size=255 [11:43:32]MH_SAM_APDU [11:43:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 50 00 00 00 F4 03 04 00 63 27 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [11:43:32]Write to MH i2c: E2 02 01 06 0F 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 50 00 00 00 F4 03 04 00 63 27 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 02 [11:43:32]Write i2c OK [11:43:32]MH_I2C_Read... [11:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:32]Read from MH i2c: E2 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 03 00 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [11:43:32]RAPDU: 90 00 [11:43:32]wFMCommunicate OK [11:43:32]wFMCommunicate request_size=34 [11:43:32]MH_SAM_APDU [11:43:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EC 00 00 35 04 06 00 C0 0B 73 C2 7C AF [11:43:32]Write to MH i2c: E2 25 00 07 0F 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EC 00 00 35 04 06 00 C0 0B 73 C2 7C AF 00 00 F0 [11:43:32]Write i2c OK [11:43:32]MH_I2C_Read... [11:43:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:32]Read from MH i2c: E2 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 03 00 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [11:43:32]RAPDU: 90 00 [11:43:32]wFMCommunicate OK [11:43:32]wFMCommunicate request_size=4 [11:43:32]MH_SAM_APDU [11:43:32]CAPDU: 80 0D 03 02 [11:43:32]Write to MH i2c: E2 08 00 08 0F 80 0D 03 02 00 00 00 00 92 [11:43:32]Write i2c OK [11:43:32]MH_I2C_Read... [11:43:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:32]Read from MH i2c: E2 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 0B 00 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 0B 00 08 0F 00 C9 AB E3 B5 8D EE 10 CA 90 00 F4 [11:43:32]RAPDU: C9 AB E3 B5 8D EE 10 CA 90 00 [11:43:32]wFMCommunicate OK [11:43:32]SAM_PROTO_SignData done [11:43:32]FM_MakeSignedData done [11:43:32]CreateOFDProtocolMessage [11:43:32]wFMCommunicate request_size=4 [11:43:32]MH_SAM_APDU [11:43:32]CAPDU: 80 11 00 00 [11:43:32]Write to MH i2c: E2 08 00 09 0F 80 11 00 00 00 00 00 00 92 [11:43:32]Write i2c OK [11:43:32]MH_I2C_Read... [11:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:32]Read from MH i2c: E2 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 17 00 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: E2 17 00 09 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 E9 [11:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:43:32]wFMCommunicate OK [11:43:32]CreateOFDProtocolMessage done [11:43:32]OFDSenderStorePacket 60548 [11:43:32]StoreOFDPacket docnum=60548 [11:43:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 14 A4 1F 01 98 AE 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 50 00 00 00 F4 03 04 00 63 27 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EC 00 00 35 04 06 00 C0 0B 73 C2 7C AF C9 AB E3 B5 8D EE 10 CA [11:43:32]CheckFolder [11:43:32]dirname=/storage/ofd_packets [11:43:32]CheckFolder done [11:43:32]ProducePacketName [11:43:32]name=ofd_packets/00060548 [11:43:32]NVStorageSaveData ofd_packets/00060548 [11:43:32]File name is /storage/ofd_packets/00060548 [11:43:32]Write 325 bytes [11:43:32]NVStorageSaveData done [11:43:32]OFDSenderStorePacket done [11:43:32]KKMCreateOFDPacket done [11:43:32]NVStorageSaveData kkm_last_timestamp [11:43:32]File name is /storage/kkm_last_timestamp [11:43:32]Write 4 bytes [11:43:32]NVStorageSaveData done [11:43:32]ExternCall_PrintAddStr [11:43:32]wPrintStart [11:43:32]Write to MH i2c: 01 00 00 0A 0F 19 [11:43:32]Write i2c OK [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: 01 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: 01 07 00 [11:43:32]MH_I2C_Read... [11:43:32]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 FF 0F 2E [11:43:32]RasterBufferAndPrint [11:43:32]line Счет N : (3)200173 [11:43:32]line ИНН: 02508201610067 [11:43:32]line Контрольно-Кассовый Чек [11:43:32]line ПРОДАЖА [11:43:32]line Товар: 48743587 [11:43:32]line Сигареты Winston XStyle Silver [11:43:32]line 1.000 * 144.00 [11:43:32]line = 144.00 [11:43:32]line НДС 12% НСП 1% [11:43:32]line > о реализуемом товаре [11:43:32]line ИТОГО: 144.00 [11:43:32]line НСП 1% : 1.27 [11:43:32]line НДС 12% : 15.29 [11:43:32]line Наличными: 144.00 [11:43:32]line Безнал.: 0.00 [11:43:32]line Место: АЗС № 87 "Партнер Нефть" [11:43:32]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:43:32]line СНО: Общий режим [11:43:32]line Чек 80 27.10.2024 11:43 [11:43:32]line Смена: 532 ФФД: 1.0 [11:43:32]line ЗНМ: 0300000084 [11:43:32]line РНМ: 0000000000091622 [11:43:32]line Версия ККМ: 001 [11:43:32]line ФМ: 0000000000874674 [11:43:32]line ФД: 60548 [11:43:32]line ФПД: 211155419298991 [11:43:32]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114331&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60548&fm=211155419298991&tin=02508201610067®Number=0000000000091622&sum=14400 [11:43:32]line 0 [11:43:32]OFD Sender: Processing packet 60548 [packets to send 30, broken 29] [11:43:32]ProducePacketName [11:43:32]name=ofd_packets/00060548 [11:43:32]OFD Sender: To server: pG, [11:43:32]CommunicateWithHost lk.salyk.kg:30040 [11:43:32]ConnectInit lk.salyk.kg [11:43:32]written 0, free lines is 4095 [11:43:32]Connected sock=10 [11:43: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 36 37 34 27 01 00 00 14 A4 1F 01 98 AE 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 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 50 00 00 00 F4 03 04 00 63 27 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 84 EC 00 00 35 04 06 00 C0 0B 73 C2 7C AF C9 AB E3 B5 8D EE 10 CA [11:43:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 47 80 47 00 D7 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 36 37 34 10 04 04 00 84 EC 00 00 F4 03 04 00 4B CD 1D 67 B6 04 01 00 00 8F 1D 32 C1 DD 22 A6 CB [11:43:33]CommunicateWithHost err = 0 [11:43:33]CheckOFDResponse [11:43:33]1017 (14) - 77093643461234 [11:43:33]1041 (16) - 0000000000874674 [11:43:33]1040 (4) - 60548 [11:43:33]1012 (4) - 27.10.2024 05:19 [11:43:33]1206 (1) - 0 [11:43:33]OFD Sender: Remove packet 60548 [11:43:33]ProducePacketName [11:43:33]name=ofd_packets/00060548 [11:43:33]NVStorageDeleteData [11:43:33]Write to MH i2c: 01 00 00 33 0F 42 [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 07 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 D7 0C 2C [11:43:33]RasterBufferAndPrint [11:43:33]line [11:43:33]line [11:43:33]line [11:43:33]line [11:43:33]line [11:43:33]written 0, free lines is 3294 [11:43:33]MH_Cut [11:43:33]Write to MH i2c: D1 01 00 3A 0F 01 1B [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: D1 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: D1 01 00 [11:43:33]MH_I2C_Read... [11:43:33]Read from MH i2c: D1 01 00 3A 0F 00 1A [11:43:33]Write to MH i2c: 01 00 00 3B 0F 4A [11:43:33]Write i2c OK [11:43:33]MH_I2C_Read... [11:43:33]OFD Sender: No OFD packet to send [11:43:34]*** Cut start [11:43:34]*** Partial cut [11:43:34]*** CUTSNS_PIN = 1 [11:43:34]*** CUTSNS_PIN = 0 [11:43:34]*** Brake cut motor [11:43:34]Read from MH i2c: 01 [11:43:34]MH_I2C_Read... [11:43:34]*** Stop cut motor [11:43:34]*** Cut end [11:43:34]Read from MH i2c: 01 07 00 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [11:43:34]process_action close_receipt done [11:43:34]requested_data is exist [11:43:34]produce_requested_data [11:43:34]requested_item fm.sn is exist - process it [11:43:34]wFMCommunicate request_size=4 [11:43:34]MH_SAM_APDU [11:43:34]CAPDU: 80 11 00 00 [11:43:34]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [11:43:34]Write i2c OK [11:43:34]MH_I2C_Read... [11:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:34]Read from MH i2c: E2 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: E2 17 00 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 1C [11:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:43:34]wFMCommunicate OK [11:43:34]requested_item fd.num is exist - process it [11:43:34]SAM_PROTO_GetFieldsCounters [11:43:34]wFMCommunicate request_size=4 [11:43:34]MH_SAM_APDU [11:43:34]CAPDU: 80 13 00 00 [11:43:34]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [11:43:34]Write i2c OK [11:43:34]MH_I2C_Read... [11:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:34]Read from MH i2c: E2 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: E2 62 00 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: E2 62 00 3D 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 84 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [11:43: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 84 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:34]wFMCommunicate OK [11:43:34]SAM_PROTO_GetFieldsCounters done [11:43:34]requested_item shift.num is exist - process it [11:43:34]requested_item shift.opened is exist - process it [11:43:34]req_shift_opened [11:43:34]FM_GetShiftState [11:43:34]SAM_PROTO_GetShiftState [11:43:34]wFMCommunicate request_size=4 [11:43:34]MH_SAM_APDU [11:43:34]CAPDU: 80 13 01 00 [11:43:34]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [11:43:34]Write i2c OK [11:43:34]MH_I2C_Read... [11:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:34]Read from MH i2c: E2 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: E2 0E 00 [11:43:34]MH_I2C_Read... [11:43:34]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 66 [11:43:34]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:43:34]wFMCommunicate OK [11:43:34]SAM_PROTO_GetShiftState done [11:43:34]FM_GetShiftState done [11:43:34]req_shift_opened done [11:43:34]requested_item shift.open_date is exist - process it [11:43:34]req_shift_open_date [11:43:34]req_shift_open_date done [11:43:34]produce_requested_data done [11:43:34]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60548,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:43:34]process_action_free close_receipt [11:43:34]json_value_free [11:43:34]json_value_free done [11:43:34]process_json_proto returns [11:43:34]Send response to host [11:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60548,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:43:34]free response buf [11:43:34]execute_script done [11:43:34]execute_script returns [11:43:34]free content buf [11:43:34]Sock 9.Close socket [11:43:34]Sock 9.Thread stoped [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:32]accept exits with 7 [11:53:32]New connection [11:53:32]New thread 3067362660 created [11:53:32]Thread 3067219300 joined [11:53:32]Waiting for new connection... [11:53:32] Sock 7.Parse request [11:53:32]Sock 7.Check first char [11:53:32]Sock 7.First char is OK [11:53:32]request: POST /json_proto HTTP/1.0 [11:53:32]Method: POST [11:53:32]URL: /json_proto [11:53:32]Method is POST - this is cgi request [11:53:32]url: /json_proto [11:53:32]query_string will be loaded in cgi processing [11:53:32]execute_cgi json_proto POST (null) [11:53:32]execute_cgi path=json_proto method=POST [11:53:32]POST find Content-Length [11:53:32]Host: 172.17.42.196:8080 [11:53:32]Content-Length: 604 [11:53:32]Content-Type: application/json [11:53:32] [11:53:32]POST finish read [11:53:32]Found Content-Length = 604 [11:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200174", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:32]execute_script... [11:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200174", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:32]POST & json_proto [11:53:32]process_json_proto [11:53:32]json parsed OK: [11:53:32]protocol is kg_v1.0 [11:53:32]action value=close_receipt [11:53:32]process_action close_receipt [11:53:32]cmd_close_receipt [11:53:32]MH_GetDate [11:53:32]Write to MH i2c: F0 00 00 3F 0F 3D [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: F0 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: F0 09 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: F0 09 00 3F 0F 00 BD 29 1E 67 FF C4 6B 64 43 [11:53:32]GetLastDocTimeStamp 1730029411 [11:53:32]current date 1730030013 [11:53:32]FM_GetShiftState [11:53:32]SAM_PROTO_GetShiftState [11:53:32]wFMCommunicate request_size=4 [11:53:32]MH_SAM_APDU [11:53:32]CAPDU: 80 13 01 00 [11:53:32]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [11:53:32]Write i2c OK [11:53:32]MH_I2C_Read... [11:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:32]Read from MH i2c: E2 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 0E 00 [11:53:32]MH_I2C_Read... [11:53:32]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 68 [11:53:32]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:53:32]wFMCommunicate OK [11:53:32]SAM_PROTO_GetShiftState done [11:53:32]FM_GetShiftState done [11:53:32]opened in 1729989505 [11:53:32]opened+sec_in_day 1730075905 [11:53:32]quantity*price = 4400 [11:53:32]sum+1 = 4401 [11:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 44.00 НСП 1% : 0.39 НДС 12% : 4.67 Наличными: 44.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 81 27.10.2024 11:53 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60549 ФПД: 259899136506580 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115333&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60549&fm=259899136506580&tin=02508201610067®Number=0000000000091622&sum=4400 0 [11:53:33]StoreToDocumentArchive [11:53:33]shift 532 fd 60549 [11:53:33]save to /storage/0532/doc_00060549 [11:53:33]save last doc name /storage/0532/doc_00060549 to /storage/kkm_last_doc_name [11:53:33]save OK [11:53:33]Clear old archive folders... [11:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:53:33]tlvbuf is 001E3630 [11:53:33]SAM_PROTO_ClearQueue [11:53:33]wFMCommunicate request_size=4 [11:53:33]MH_SAM_APDU [11:53:33]CAPDU: 80 09 00 00 [11:53:33]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [11:53:33]Write i2c OK [11:53:33]MH_I2C_Read... [11:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:34]Read from MH i2c: E2 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [11:53:34]RAPDU: 90 00 [11:53:34]wFMCommunicate OK [11:53:34]SAM_PROTO_ClearQueue done [11:53:34]KKMCreateOFDPacket [11:53:34]OFDProtocolAddRootSTLVToBuf [11:53:34]FM_MakeSignedData [11:53:34]FM_MakeSignedData [11:53:34]SAM_PROTO_SignData [11:53:34]wFMCommunicate request_size=4 [11:53:34]MH_SAM_APDU [11:53:34]CAPDU: 80 0D 01 02 [11:53:34]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:34]Read from MH i2c: E2 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [11:53:34]RAPDU: 90 00 [11:53:34]wFMCommunicate OK [11:53:34]wFMCommunicate request_size=255 [11:53:34]MH_SAM_APDU [11:53:34]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 BD 29 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [11:53:34]Write to MH i2c: E2 02 01 4F 0F 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 BD 29 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 3D [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]OFD Sender: No OFD packet to send [11:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:34]Read from MH i2c: E2 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [11:53:34]RAPDU: 90 00 [11:53:34]wFMCommunicate OK [11:53:34]wFMCommunicate request_size=34 [11:53:34]MH_SAM_APDU [11:53:34]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EC 00 00 35 04 06 00 EC 60 7B B5 7A D4 [11:53:34]Write to MH i2c: E2 25 00 50 0F 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EC 00 00 35 04 06 00 EC 60 7B B5 7A D4 00 00 D9 [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:34]Read from MH i2c: E2 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [11:53:34]RAPDU: 90 00 [11:53:34]wFMCommunicate OK [11:53:34]wFMCommunicate request_size=4 [11:53:34]MH_SAM_APDU [11:53:34]CAPDU: 80 0D 03 02 [11:53:34]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:34]Read from MH i2c: E2 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 0B 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 0B 00 51 0F 00 DC B6 18 D0 37 4C 01 28 90 00 02 [11:53:34]RAPDU: DC B6 18 D0 37 4C 01 28 90 00 [11:53:34]wFMCommunicate OK [11:53:34]SAM_PROTO_SignData done [11:53:34]FM_MakeSignedData done [11:53:34]CreateOFDProtocolMessage [11:53:34]wFMCommunicate request_size=4 [11:53:34]MH_SAM_APDU [11:53:34]CAPDU: 80 11 00 00 [11:53:34]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:34]Read from MH i2c: E2 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 17 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 32 [11:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:53:34]wFMCommunicate OK [11:53:34]CreateOFDProtocolMessage done [11:53:34]OFDSenderStorePacket 60549 [11:53:34]StoreOFDPacket docnum=60549 [11:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 37 53 1F 01 3D 8D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 BD 29 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EC 00 00 35 04 06 00 EC 60 7B B5 7A D4 DC B6 18 D0 37 4C 01 28 [11:53:34]CheckFolder [11:53:34]dirname=/storage/ofd_packets [11:53:34]CheckFolder done [11:53:34]ProducePacketName [11:53:34]name=ofd_packets/00060549 [11:53:34]NVStorageSaveData ofd_packets/00060549 [11:53:34]File name is /storage/ofd_packets/00060549 [11:53:34]Write 325 bytes [11:53:34]NVStorageSaveData done [11:53:34]OFDSenderStorePacket done [11:53:34]KKMCreateOFDPacket done [11:53:34]NVStorageSaveData kkm_last_timestamp [11:53:34]File name is /storage/kkm_last_timestamp [11:53:34]Write 4 bytes [11:53:34]NVStorageSaveData done [11:53:34]ExternCall_PrintAddStr [11:53:34]wPrintStart [11:53:34]Write to MH i2c: 01 00 00 53 0F 62 [11:53:34]Write i2c OK [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: 01 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: 01 07 00 [11:53:34]MH_I2C_Read... [11:53:34]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [11:53:34]RasterBufferAndPrint [11:53:34]line Счет N : (3)200174 [11:53:34]line ИНН: 02508201610067 [11:53:34]line Контрольно-Кассовый Чек [11:53:34]line ПРОДАЖА [11:53:34]line Товар: 4870112003925 [11:53:34]line Конд ULKER-Albeni 40gr (6*24) [11:53:34]line 1.000 * 44.00 [11:53:34]line = 44.00 [11:53:34]line НДС 12% НСП 1% [11:53:34]line > о реализуемом товаре [11:53:34]line ИТОГО: 44.00 [11:53:34]line НСП 1% : 0.39 [11:53:34]line НДС 12% : 4.67 [11:53:34]line Наличными: 44.00 [11:53:34]line Безнал.: 0.00 [11:53:34]line Место: АЗС № 87 "Партнер Нефть" [11:53:34]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [11:53:34]line СНО: Общий режим [11:53:34]line Чек 81 27.10.2024 11:53 [11:53:34]line Смена: 532 ФФД: 1.0 [11:53:34]line ЗНМ: 0300000084 [11:53:34]line РНМ: 0000000000091622 [11:53:34]line Версия ККМ: 001 [11:53:34]line ФМ: 0000000000874674 [11:53:34]line ФД: 60549 [11:53:34]line ФПД: 259899136506580 [11:53:34]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115333&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60549&fm=259899136506580&tin=02508201610067®Number=0000000000091622&sum=4400 [11:53:34]OFD Sender: Processing packet 60549 [packets to send 30, broken 29] [11:53:34]ProducePacketName [11:53:34]name=ofd_packets/00060549 [11:53:34]OFD Sender: To server: pG, [11:53:34]CommunicateWithHost lk.salyk.kg:30040 [11:53:34]ConnectInit lk.salyk.kg [11:53:34]line 0 [11:53:34]written 0, free lines is 4095 [11:53:34]Connected sock=10 [11:53: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 36 37 34 27 01 00 00 37 53 1F 01 3D 8D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 BD 29 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EC 00 00 35 04 06 00 EC 60 7B B5 7A D4 DC B6 18 D0 37 4C 01 28 [11:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 EB B3 47 00 3B E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 85 EC 00 00 F4 03 04 00 A5 CF 1D 67 B6 04 01 00 00 F5 5C 8F FC 00 7C 57 7F [11:53:35]CommunicateWithHost err = 0 [11:53:35]CheckOFDResponse [11:53:35]1017 (14) - 77093643461234 [11:53:35]1041 (16) - 0000000000874674 [11:53:35]1040 (4) - 60549 [11:53:35]1012 (4) - 27.10.2024 05:29 [11:53:35]1206 (1) - 0 [11:53:35]OFD Sender: Remove packet 60549 [11:53:35]ProducePacketName [11:53:35]name=ofd_packets/00060549 [11:53:35]NVStorageDeleteData [11:53:35]Write to MH i2c: 01 00 00 7B 0F 8A [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: 01 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: 01 07 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: 01 07 00 7B 0F 00 00 00 00 00 FB 0C 98 [11:53:35]RasterBufferAndPrint [11:53:35]line [11:53:35]line [11:53:35]line [11:53:35]line [11:53:35]line [11:53:35]written 0, free lines is 3330 [11:53:35]MH_Cut [11:53:35]Write to MH i2c: D1 01 00 82 0F 01 63 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: D1 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: D1 01 00 [11:53:35]MH_I2C_Read... [11:53:35]Read from MH i2c: D1 01 00 82 0F 00 62 [11:53:35]Write to MH i2c: 01 00 00 83 0F 92 [11:53:35]Write i2c OK [11:53:35]MH_I2C_Read... [11:53:35]OFD Sender: No OFD packet to send [11:53:36]*** Cut start [11:53:36]*** Partial cut [11:53:36]*** CUTSNS_PIN = 1 [11:53:36]*** CUTSNS_PIN = 0 [11:53:36]*** Brake cut motor [11:53:36]Read from MH i2c: 01 [11:53:36]MH_I2C_Read... [11:53:36]*** Stop cut motor [11:53:36]*** Cut end [11:53:36]Read from MH i2c: 01 07 00 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: 01 07 00 83 0F 00 00 00 00 00 FF 0F A7 [11:53:36]process_action close_receipt done [11:53:36]requested_data is exist [11:53:36]produce_requested_data [11:53:36]requested_item fm.sn is exist - process it [11:53:36]wFMCommunicate request_size=4 [11:53:36]MH_SAM_APDU [11:53:36]CAPDU: 80 11 00 00 [11:53:36]Write to MH i2c: E2 08 00 84 0F 80 11 00 00 00 00 00 00 0D [11:53:36]Write i2c OK [11:53:36]MH_I2C_Read... [11:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:36]Read from MH i2c: E2 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: E2 17 00 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: E2 17 00 84 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 64 [11:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [11:53:36]wFMCommunicate OK [11:53:36]requested_item fd.num is exist - process it [11:53:36]SAM_PROTO_GetFieldsCounters [11:53:36]wFMCommunicate request_size=4 [11:53:36]MH_SAM_APDU [11:53:36]CAPDU: 80 13 00 00 [11:53:36]Write to MH i2c: E2 08 00 85 0F 80 13 00 00 00 00 00 00 10 [11:53:36]Write i2c OK [11:53:36]MH_I2C_Read... [11:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:36]Read from MH i2c: E2 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: E2 62 00 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: E2 62 00 85 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 85 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [11:53: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 85 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:36]wFMCommunicate OK [11:53:36]SAM_PROTO_GetFieldsCounters done [11:53:36]requested_item shift.num is exist - process it [11:53:36]requested_item shift.opened is exist - process it [11:53:36]req_shift_opened [11:53:36]FM_GetShiftState [11:53:36]SAM_PROTO_GetShiftState [11:53:36]wFMCommunicate request_size=4 [11:53:36]MH_SAM_APDU [11:53:36]CAPDU: 80 13 01 00 [11:53:36]Write to MH i2c: E2 08 00 86 0F 80 13 01 00 00 00 00 00 12 [11:53:36]Write i2c OK [11:53:36]MH_I2C_Read... [11:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:36]Read from MH i2c: E2 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: E2 0E 00 [11:53:36]MH_I2C_Read... [11:53:36]Read from MH i2c: E2 0E 00 86 0F 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 AE [11:53:36]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [11:53:36]wFMCommunicate OK [11:53:36]SAM_PROTO_GetShiftState done [11:53:36]FM_GetShiftState done [11:53:36]req_shift_opened done [11:53:36]requested_item shift.open_date is exist - process it [11:53:36]req_shift_open_date [11:53:36]req_shift_open_date done [11:53:36]produce_requested_data done [11:53:36]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60549,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [11:53:36]process_action_free close_receipt [11:53:36]json_value_free [11:53:36]json_value_free done [11:53:36]process_json_proto returns [11:53:36]Send response to host [11:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60549,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [11:53:36]free response buf [11:53:36]execute_script done [11:53:36]execute_script returns [11:53:36]free content buf [11:53:36]Sock 7.Close socket [11:53:36]Sock 7.Thread stoped [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:03:56]accept exits with 9 [12:03:56]New connection [12:03:56]New thread 3067219300 created [12:03:56]Thread 3067362660 joined [12:03:56]Waiting for new connection... [12:03:56] Sock 9.Parse request [12:03:56]Sock 9.Check first char [12:03:56]Sock 9.First char is OK [12:03:56]request: POST /json_proto HTTP/1.0 [12:03:56]Method: POST [12:03:56]URL: /json_proto [12:03:56]Method is POST - this is cgi request [12:03:56]url: /json_proto [12:03:56]query_string will be loaded in cgi processing [12:03:56]execute_cgi json_proto POST (null) [12:03:56]execute_cgi path=json_proto method=POST [12:03:56]POST find Content-Length [12:03:56]Host: 172.17.42.196:8080 [12:03:56]Content-Length: 634 [12:03:56]Content-Type: application/json [12:03:56] [12:03:56]POST finish read [12:03:56]Found Content-Length = 634 [12:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200175", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:56]execute_script... [12:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200175", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:56]POST & json_proto [12:03:56]process_json_proto [12:03:56]json parsed OK: [12:03:56]protocol is kg_v1.0 [12:03:56]action value=close_receipt [12:03:56]process_action close_receipt [12:03:56]cmd_close_receipt [12:03:56]MH_GetDate [12:03:56]Write to MH i2c: F0 00 00 87 0F 85 [12:03:56]Write i2c OK [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: F0 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: F0 09 00 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: F0 09 00 87 0F 00 2D 2C 1E 67 FF C4 6B 64 FE [12:03:56]GetLastDocTimeStamp 1730030013 [12:03:56]current date 1730030637 [12:03:56]FM_GetShiftState [12:03:56]SAM_PROTO_GetShiftState [12:03:56]wFMCommunicate request_size=4 [12:03:56]MH_SAM_APDU [12:03:56]CAPDU: 80 13 01 00 [12:03:56]Write to MH i2c: E2 08 00 88 0F 80 13 01 00 00 00 00 00 14 [12:03:56]Write i2c OK [12:03:56]MH_I2C_Read... [12:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:56]Read from MH i2c: E2 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: E2 0E 00 [12:03:56]MH_I2C_Read... [12:03:56]Read from MH i2c: E2 0E 00 88 0F 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 B0 [12:03:56]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:03:56]wFMCommunicate OK [12:03:56]SAM_PROTO_GetShiftState done [12:03:56]FM_GetShiftState done [12:03:56]opened in 1729989505 [12:03:56]opened+sec_in_day 1730075905 [12:03:56]quantity*price = 12000 [12:03:56]sum+1 = 12001 [12:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 82 27.10.2024 12:03 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60550 ФПД: 247281295049983 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120357&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60550&fm=247281295049983&tin=02508201610067®Number=0000000000091622&sum=12000 0 [12:03:57]StoreToDocumentArchive [12:03:57]shift 532 fd 60550 [12:03:57]save to /storage/0532/doc_00060550 [12:03:57]save last doc name /storage/0532/doc_00060550 to /storage/kkm_last_doc_name [12:03:57]save OK [12:03:57]Clear old archive folders... [12:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:03:57]tlvbuf is 001C94C0 [12:03:57]SAM_PROTO_ClearQueue [12:03:57]wFMCommunicate request_size=4 [12:03:57]MH_SAM_APDU [12:03:57]CAPDU: 80 09 00 00 [12:03:57]Write to MH i2c: E2 08 00 95 0F 80 09 00 00 00 00 00 00 16 [12:03:57]Write i2c OK [12:03:57]MH_I2C_Read... [12:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:57]Read from MH i2c: E2 [12:03:57]MH_I2C_Read... [12:03:57]Read from MH i2c: E2 03 00 [12:03:57]MH_I2C_Read... [12:03:57]Read from MH i2c: E2 03 00 95 0F 00 90 00 18 [12:03:57]RAPDU: 90 00 [12:03:57]wFMCommunicate OK [12:03:57]SAM_PROTO_ClearQueue done [12:03:57]KKMCreateOFDPacket [12:03:57]OFDProtocolAddRootSTLVToBuf [12:03:57]FM_MakeSignedData [12:03:57]FM_MakeSignedData [12:03:57]SAM_PROTO_SignData [12:03:57]wFMCommunicate request_size=4 [12:03:57]MH_SAM_APDU [12:03:57]CAPDU: 80 0D 01 02 [12:03:57]Write to MH i2c: E2 08 00 96 0F 80 0D 01 02 00 00 00 00 1E [12:03:57]Write i2c OK [12:03:57]MH_I2C_Read... [12:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:57]Read from MH i2c: E2 [12:03:57]MH_I2C_Read... [12:03:57]Read from MH i2c: E2 03 00 [12:03:57]MH_I2C_Read... [12:03:57]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [12:03:57]RAPDU: 90 00 [12:03:57]wFMCommunicate OK [12:03:57]wFMCommunicate request_size=255 [12:03:57]MH_SAM_APDU [12:03:57]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2D 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:03:57]Write to MH i2c: E2 02 01 97 0F 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2D 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 C3 [12:03:57]Write i2c OK [12:03:57]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [12:03:58]RAPDU: 90 00 [12:03:58]wFMCommunicate OK [12:03:58]wFMCommunicate request_size=30 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 34 10 04 04 00 86 EC 00 00 35 04 06 00 E0 E6 A9 C0 44 FF [12:03:58]Write to MH i2c: E2 21 00 98 0F 80 0D 02 02 19 00 30 38 37 34 36 37 34 10 04 04 00 86 EC 00 00 35 04 06 00 E0 E6 A9 C0 44 FF 00 00 02 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [12:03:58]RAPDU: 90 00 [12:03:58]wFMCommunicate OK [12:03:58]wFMCommunicate request_size=4 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 0D 03 02 [12:03:58]Write to MH i2c: E2 08 00 99 0F 80 0D 03 02 00 00 00 00 23 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 0B 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 0B 00 99 0F 00 64 41 74 BE 90 AF 1C 11 90 00 67 [12:03:58]RAPDU: 64 41 74 BE 90 AF 1C 11 90 00 [12:03:58]wFMCommunicate OK [12:03:58]SAM_PROTO_SignData done [12:03:58]FM_MakeSignedData done [12:03:58]CreateOFDProtocolMessage [12:03:58]wFMCommunicate request_size=4 [12:03:58]MH_SAM_APDU [12:03:58]CAPDU: 80 11 00 00 [12:03:58]Write to MH i2c: E2 08 00 9A 0F 80 11 00 00 00 00 00 00 23 [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:58]Read from MH i2c: E2 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 17 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: E2 17 00 9A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 7A [12:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:03:58]wFMCommunicate OK [12:03:58]CreateOFDProtocolMessage done [12:03:58]OFDSenderStorePacket 60550 [12:03:58]StoreOFDPacket docnum=60550 [12:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 23 01 00 00 D0 83 1B 01 94 1D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2D 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 86 EC 00 00 35 04 06 00 E0 E6 A9 C0 44 FF 64 41 74 BE 90 AF 1C 11 [12:03:58]CheckFolder [12:03:58]dirname=/storage/ofd_packets [12:03:58]CheckFolder done [12:03:58]ProducePacketName [12:03:58]name=ofd_packets/00060550 [12:03:58]NVStorageSaveData ofd_packets/00060550 [12:03:58]File name is /storage/ofd_packets/00060550 [12:03:58]Write 321 bytes [12:03:58]NVStorageSaveData done [12:03:58]OFDSenderStorePacket done [12:03:58]KKMCreateOFDPacket done [12:03:58]NVStorageSaveData kkm_last_timestamp [12:03:58]File name is /storage/kkm_last_timestamp [12:03:58]Write 4 bytes [12:03:58]NVStorageSaveData done [12:03:58]ExternCall_PrintAddStr [12:03:58]wPrintStart [12:03:58]Write to MH i2c: 01 00 00 9B 0F AA [12:03:58]Write i2c OK [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: 01 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: 01 07 00 [12:03:58]MH_I2C_Read... [12:03:58]Read from MH i2c: 01 07 00 9B 0F 00 00 00 00 00 FF 0F BF [12:03:58]RasterBufferAndPrint [12:03:58]line Счет N : (3)200175 [12:03:58]line ИНН: 02508201610067 [12:03:58]line Контрольно-Кассовый Чек [12:03:58]line ПРОДАЖА [12:03:58]line Товар: 4700000160204 [12:03:58]line Вода Легенда 1,5л [12:03:58]line 2.000 * 60.00 [12:03:58]line = 120.00 [12:03:58]line НДС 12% НСП 1% [12:03:58]line > о реализуемом товаре [12:03:58]line ИТОГО: 120.00 [12:03:58]line НСП 1% : 1.06 [12:03:58]line НДС 12% : 12.74 [12:03:58]line Наличными: 120.00 [12:03:58]line Безнал.: 0.00 [12:03:58]line Место: АЗС № 87 "Партнер Нефть" [12:03:58]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [12:03:58]line СНО: Общий режим [12:03:58]line Чек 82 27.10.2024 12:03 [12:03:58]line Смена: 532 ФФД: 1.0 [12:03:58]line ЗНМ: 0300000084 [12:03:58]line РНМ: 0000000000091622 [12:03:58]line Версия ККМ: 001 [12:03:58]line ФМ: 0000000000874674 [12:03:58]line ФД: 60550 [12:03:58]line ФПД: 247281295049983 [12:03:58]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120357&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60550&fm=247281295049983&tin=02508201610067®Number=0000000000091622&sum=12000 [12:03:58]line 0 [12:03:58]OFD Sender: Processing packet 60550 [packets to send 30, broken 29] [12:03:58]ProducePacketName [12:03:58]name=ofd_packets/00060550 [12:03:58]OFD Sender: To server: pG, [12:03:58]CommunicateWithHost lk.salyk.kg:30040 [12:03:58]ConnectInit lk.salyk.kg [12:03:58]written 0, free lines is 4095 [12:03:58]Connected sock=10 [12:03: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 36 37 34 23 01 00 00 D0 83 1B 01 94 1D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2D 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 86 EC 00 00 35 04 06 00 E0 E6 A9 C0 44 FF 64 41 74 BE 90 AF 1C 11 [12:03:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 1E CB 47 00 79 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 36 37 34 10 04 04 00 86 EC 00 00 F4 03 04 00 15 D2 1D 67 B6 04 01 00 00 98 91 7C 3F F2 2F 3F 7E [12:03:59]CommunicateWithHost err = 0 [12:03:59]CheckOFDResponse [12:03:59]1017 (14) - 77093643461234 [12:03:59]1041 (16) - 0000000000874674 [12:03:59]1040 (4) - 60550 [12:03:59]1012 (4) - 27.10.2024 05:39 [12:03:59]1206 (1) - 0 [12:03:59]OFD Sender: Remove packet 60550 [12:03:59]ProducePacketName [12:03:59]name=ofd_packets/00060550 [12:03:59]NVStorageDeleteData [12:03:59]Write to MH i2c: 01 00 00 C3 0F D2 [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: 01 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: 01 07 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: 01 07 00 C3 0F 00 00 00 00 00 F3 0C D8 [12:03:59]RasterBufferAndPrint [12:03:59]line [12:03:59]line [12:03:59]line [12:03:59]line [12:03:59]line [12:03:59]written 0, free lines is 3322 [12:03:59]MH_Cut [12:03:59]Write to MH i2c: D1 01 00 CA 0F 01 AB [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: D1 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: D1 01 00 [12:03:59]MH_I2C_Read... [12:03:59]Read from MH i2c: D1 01 00 CA 0F 00 AA [12:03:59]Write to MH i2c: 01 00 00 CB 0F DA [12:03:59]Write i2c OK [12:03:59]MH_I2C_Read... [12:03:59]OFD Sender: No OFD packet to send [12:03:59]*** Cut start [12:03:59]*** Partial cut [12:03:59]*** CUTSNS_PIN = 1 [12:03:59]*** CUTSNS_PIN = 0 [12:04:00]*** Brake cut motor [12:04:00]Read from MH i2c: 01 [12:04:00]MH_I2C_Read... [12:04:00]*** Stop cut motor [12:04:00]*** Cut end [12:04:00]Read from MH i2c: 01 07 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: 01 07 00 CB 0F 00 00 00 00 00 FF 0F EF [12:04:00]process_action close_receipt done [12:04:00]requested_data is exist [12:04:00]produce_requested_data [12:04:00]requested_item fm.sn is exist - process it [12:04:00]wFMCommunicate request_size=4 [12:04:00]MH_SAM_APDU [12:04:00]CAPDU: 80 11 00 00 [12:04:00]Write to MH i2c: E2 08 00 CC 0F 80 11 00 00 00 00 00 00 55 [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:00]Read from MH i2c: E2 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 17 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 17 00 CC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 AC [12:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:04:00]wFMCommunicate OK [12:04:00]requested_item fd.num is exist - process it [12:04:00]SAM_PROTO_GetFieldsCounters [12:04:00]wFMCommunicate request_size=4 [12:04:00]MH_SAM_APDU [12:04:00]CAPDU: 80 13 00 00 [12:04:00]Write to MH i2c: E2 08 00 CD 0F 80 13 00 00 00 00 00 00 58 [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:00]Read from MH i2c: E2 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 62 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 62 00 CD 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 86 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:04: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 86 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:00]wFMCommunicate OK [12:04:00]SAM_PROTO_GetFieldsCounters done [12:04:00]requested_item shift.num is exist - process it [12:04:00]requested_item shift.opened is exist - process it [12:04:00]req_shift_opened [12:04:00]FM_GetShiftState [12:04:00]SAM_PROTO_GetShiftState [12:04:00]wFMCommunicate request_size=4 [12:04:00]MH_SAM_APDU [12:04:00]CAPDU: 80 13 01 00 [12:04:00]Write to MH i2c: E2 08 00 CE 0F 80 13 01 00 00 00 00 00 5A [12:04:00]Write i2c OK [12:04:00]MH_I2C_Read... [12:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:00]Read from MH i2c: E2 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 0E 00 [12:04:00]MH_I2C_Read... [12:04:00]Read from MH i2c: E2 0E 00 CE 0F 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F6 [12:04:00]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:04:00]wFMCommunicate OK [12:04:00]SAM_PROTO_GetShiftState done [12:04:00]FM_GetShiftState done [12:04:00]req_shift_opened done [12:04:00]requested_item shift.open_date is exist - process it [12:04:00]req_shift_open_date [12:04:00]req_shift_open_date done [12:04:00]produce_requested_data done [12:04:00]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60550,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:04:00]process_action_free close_receipt [12:04:00]json_value_free [12:04:00]json_value_free done [12:04:00]process_json_proto returns [12:04:00]Send response to host [12:04:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60550,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:04:00]free response buf [12:04:00]execute_script done [12:04:00]execute_script returns [12:04:00]free content buf [12:04:00]Sock 9.Close socket [12:04:00]Sock 9.Thread stoped [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:58]accept exits with 7 [12:05:58]New connection [12:05:58]New thread 3067362660 created [12:05:58]Thread 3067219300 joined [12:05:58]Waiting for new connection... [12:05:58] Sock 7.Parse request [12:05:58]Sock 7.Check first char [12:05:58]Sock 7.First char is OK [12:05:58]request: POST /json_proto HTTP/1.0 [12:05:58]Method: POST [12:05:58]URL: /json_proto [12:05:58]Method is POST - this is cgi request [12:05:58]url: /json_proto [12:05:58]query_string will be loaded in cgi processing [12:05:58]execute_cgi json_proto POST (null) [12:05:58]execute_cgi path=json_proto method=POST [12:05:58]POST find Content-Length [12:05:58]Host: 172.17.42.196:8080 [12:05:58]Content-Length: 613 [12:05:58]Content-Type: application/json [12:05:58] [12:05:58]POST finish read [12:05:58]Found Content-Length = 613 [12:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200176", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:58]execute_script... [12:05: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 : (3)200176", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:58]POST & json_proto [12:05:58]process_json_proto [12:05:58]json parsed OK: [12:05:58]protocol is kg_v1.0 [12:05:58]action value=close_receipt [12:05:58]process_action close_receipt [12:05:58]cmd_close_receipt [12:05:58]MH_GetDate [12:05:58]Write to MH i2c: F0 00 00 CF 0F CD [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: F0 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: F0 09 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: F0 09 00 CF 0F 00 A7 2C 1E 67 FF C4 6B 64 C0 [12:05:58]GetLastDocTimeStamp 1730030637 [12:05:58]current date 1730030759 [12:05:58]FM_GetShiftState [12:05:58]SAM_PROTO_GetShiftState [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 13 01 00 [12:05:58]Write to MH i2c: E2 08 00 D0 0F 80 13 01 00 00 00 00 00 5C [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0E 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0E 00 D0 0F 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 F8 [12:05:58]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:05:58]wFMCommunicate OK [12:05:58]SAM_PROTO_GetShiftState done [12:05:58]FM_GetShiftState done [12:05:58]opened in 1729989505 [12:05:58]opened+sec_in_day 1730075905 [12:05:58]quantity*price = 8000 [12:05:58]sum+1 = 8001 [12:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 83 27.10.2024 12:05 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60551 ФПД: 141108993006480 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120559&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60551&fm=141108993006480&tin=02508201610067®Number=0000000000091622&sum=8000 0 [12:05:59]StoreToDocumentArchive [12:05:59]shift 532 fd 60551 [12:05:59]save to /storage/0532/doc_00060551 [12:05:59]save last doc name /storage/0532/doc_00060551 to /storage/kkm_last_doc_name [12:05:59]save OK [12:05:59]Clear old archive folders... [12:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:05:59]tlvbuf is 00203880 [12:05:59]SAM_PROTO_ClearQueue [12:05:59]wFMCommunicate request_size=4 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 09 00 00 [12:05:59]Write to MH i2c: E2 08 00 DD 0F 80 09 00 00 00 00 00 00 5E [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [12:05:59]RAPDU: 90 00 [12:05:59]wFMCommunicate OK [12:05:59]SAM_PROTO_ClearQueue done [12:05:59]KKMCreateOFDPacket [12:05:59]OFDProtocolAddRootSTLVToBuf [12:05:59]FM_MakeSignedData [12:05:59]FM_MakeSignedData [12:05:59]SAM_PROTO_SignData [12:05:59]wFMCommunicate request_size=4 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 0D 01 02 [12:05:59]Write to MH i2c: E2 08 00 DE 0F 80 0D 01 02 00 00 00 00 66 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [12:05:59]RAPDU: 90 00 [12:05:59]wFMCommunicate OK [12:05:59]wFMCommunicate request_size=255 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A7 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:05:59]Write to MH i2c: E2 02 01 DF 0F 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A7 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 35 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]wFMCommunicate request_size=27 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 02 02 16 34 36 37 34 10 04 04 00 87 EC 00 00 35 04 06 00 80 56 7F 67 1B 90 [12:06:00]Write to MH i2c: E2 1E 00 E0 0F 80 0D 02 02 16 00 34 36 37 34 10 04 04 00 87 EC 00 00 35 04 06 00 80 56 7F 67 1B 90 00 00 9B [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 03 02 [12:06:00]Write to MH i2c: E2 08 00 E1 0F 80 0D 03 02 00 00 00 00 6B [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0B 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0B 00 E1 0F 00 5F 31 8A B3 F8 1B F0 A4 90 00 E0 [12:06:00]RAPDU: 5F 31 8A B3 F8 1B F0 A4 90 00 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_SignData done [12:06:00]FM_MakeSignedData done [12:06:00]CreateOFDProtocolMessage [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 11 00 00 [12:06:00]Write to MH i2c: E2 08 00 E2 0F 80 11 00 00 00 00 00 00 6B [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 17 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 17 00 E2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 C2 [12:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:06:00]wFMCommunicate OK [12:06:00]CreateOFDProtocolMessage done [12:06:00]OFDSenderStorePacket 60551 [12:06:00]StoreOFDPacket docnum=60551 [12:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 20 01 00 00 95 0A 18 01 63 B6 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A7 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 87 EC 00 00 35 04 06 00 80 56 7F 67 1B 90 5F 31 8A B3 F8 1B F0 A4 [12:06:00]CheckFolder [12:06:00]dirname=/storage/ofd_packets [12:06:00]CheckFolder done [12:06:00]ProducePacketName [12:06:00]name=ofd_packets/00060551 [12:06:00]NVStorageSaveData ofd_packets/00060551 [12:06:00]File name is /storage/ofd_packets/00060551 [12:06:00]Write 318 bytes [12:06:00]NVStorageSaveData done [12:06:00]OFDSenderStorePacket done [12:06:00]KKMCreateOFDPacket done [12:06:00]NVStorageSaveData kkm_last_timestamp [12:06:00]File name is /storage/kkm_last_timestamp [12:06:00]Write 4 bytes [12:06:00]NVStorageSaveData done [12:06:00]ExternCall_PrintAddStr [12:06:00]wPrintStart [12:06:00]Write to MH i2c: 01 00 00 E3 0F F2 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 E3 0F 00 00 00 00 00 FF 0F 07 [12:06:00]RasterBufferAndPrint [12:06:00]line Счет N : (3)200176 [12:06:00]line ИНН: 02508201610067 [12:06:00]line Контрольно-Кассовый Чек [12:06:00]line ПРОДАЖА [12:06:00]line Товар: 4870001570057 [12:06:00]line Напиток Pepsi 0,5л [12:06:00]line 1.000 * 80.00 [12:06:00]line = 80.00 [12:06:00]line НДС 12% НСП 1% [12:06:00]line > о реализуемом товаре [12:06:00]line ИТОГО: 80.00 [12:06:00]line НСП 1% : 0.71 [12:06:00]line НДС 12% : 8.50 [12:06:00]line Наличными: 80.00 [12:06:00]line Безнал.: 0.00 [12:06:00]line Место: АЗС № 87 "Партнер Нефть" [12:06:00]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [12:06:00]line СНО: Общий режим [12:06:00]line Чек 83 27.10.2024 12:05 [12:06:00]line Смена: 532 ФФД: 1.0 [12:06:00]line ЗНМ: 0300000084 [12:06:00]line РНМ: 0000000000091622 [12:06:00]line Версия ККМ: 001 [12:06:00]line ФМ: 0000000000874674 [12:06:00]line ФД: 60551 [12:06:00]line ФПД: 141108993006480 [12:06:00]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120559&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60551&fm=141108993006480&tin=02508201610067®Number=0000000000091622&sum=8000 [12:06:00]line 0 [12:06:00]OFD Sender: Processing packet 60551 [packets to send 30, broken 29] [12:06:00]ProducePacketName [12:06:00]name=ofd_packets/00060551 [12:06:00]OFD Sender: To server: pG, [12:06:00]CommunicateWithHost lk.salyk.kg:30040 [12:06:00]ConnectInit lk.salyk.kg [12:06:00]written 0, free lines is 4095 [12:06:00]Connected sock=10 [12:06: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 36 37 34 20 01 00 00 95 0A 18 01 63 B6 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 A7 2C 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 87 EC 00 00 35 04 06 00 80 56 7F 67 1B 90 5F 31 8A B3 F8 1B F0 A4 [12: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 36 37 34 4F 00 00 00 06 C8 47 00 47 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 36 37 34 10 04 04 00 87 EC 00 00 F4 03 04 00 8F D2 1D 67 B6 04 01 00 00 95 77 F4 1B F6 00 16 8C [12:06:01]CommunicateWithHost err = 0 [12:06:01]CheckOFDResponse [12:06:01]1017 (14) - 77093643461234 [12:06:01]1041 (16) - 0000000000874674 [12:06:01]1040 (4) - 60551 [12:06:01]1012 (4) - 27.10.2024 05:41 [12:06:01]1206 (1) - 0 [12:06:01]OFD Sender: Remove packet 60551 [12:06:01]ProducePacketName [12:06:01]name=ofd_packets/00060551 [12:06:01]NVStorageDeleteData [12:06:01]Write to MH i2c: 01 00 00 0B 10 1B [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 0B 10 00 00 00 00 00 F2 0C 20 [12:06:01]RasterBufferAndPrint [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]written 0, free lines is 3320 [12:06:01]MH_Cut [12:06:01]Write to MH i2c: D1 01 00 12 10 01 F4 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 01 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 01 00 12 10 00 F3 [12:06:01]Write to MH i2c: 01 00 00 13 10 23 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]OFD Sender: No OFD packet to send [12:06:01]*** Cut start [12:06:01]*** Partial cut [12:06:01]*** CUTSNS_PIN = 1 [12:06:01]*** CUTSNS_PIN = 0 [12:06:02]*** Brake cut motor [12:06:02]Read from MH i2c: 01 [12:06:02]MH_I2C_Read... [12:06:02]*** Stop cut motor [12:06:02]*** Cut end [12:06:02]Read from MH i2c: 01 07 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 13 10 00 00 00 00 00 FF 0F 38 [12:06:02]process_action close_receipt done [12:06:02]requested_data is exist [12:06:02]produce_requested_data [12:06:02]requested_item fm.sn is exist - process it [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 11 00 00 [12:06:02]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 14 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 F5 [12:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:06:02]wFMCommunicate OK [12:06:02]requested_item fd.num is exist - process it [12:06:02]SAM_PROTO_GetFieldsCounters [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 00 00 [12:06:02]Write to MH i2c: E2 08 00 15 10 80 13 00 00 00 00 00 00 A1 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 15 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 87 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [12:06: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 87 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetFieldsCounters done [12:06:02]requested_item shift.num is exist - process it [12:06:02]requested_item shift.opened is exist - process it [12:06:02]req_shift_opened [12:06:02]FM_GetShiftState [12:06:02]SAM_PROTO_GetShiftState [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 01 00 [12:06:02]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 3F [12:06:02]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetShiftState done [12:06:02]FM_GetShiftState done [12:06:02]req_shift_opened done [12:06:02]requested_item shift.open_date is exist - process it [12:06:02]req_shift_open_date [12:06:02]req_shift_open_date done [12:06:02]produce_requested_data done [12:06:02]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60551,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:06:02]process_action_free close_receipt [12:06:02]json_value_free [12:06:02]json_value_free done [12:06:02]process_json_proto returns [12:06:02]Send response to host [12:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60551,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:06:02]free response buf [12:06:02]execute_script done [12:06:02]execute_script returns [12:06:02]free content buf [12:06:02]Sock 7.Close socket [12:06:02]Sock 7.Thread stoped [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12: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:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:36]accept exits with 9 [12:16:36]New connection [12:16:36]New thread 3067219300 created [12:16:36]Thread 3067362660 joined [12:16:36]Waiting for new connection... [12:16:36] Sock 9.Parse request [12:16:36]Sock 9.Check first char [12:16:36]Sock 9.First char is OK [12:16:36]request: POST /json_proto HTTP/1.0 [12:16:36]Method: POST [12:16:36]URL: /json_proto [12:16:36]Method is POST - this is cgi request [12:16:36]url: /json_proto [12:16:36]query_string will be loaded in cgi processing [12:16:36]execute_cgi json_proto POST (null) [12:16:36]execute_cgi path=json_proto method=POST [12:16:36]POST find Content-Length [12:16:36]Host: 172.17.42.196:8080 [12:16:36]Content-Length: 770 [12:16:36]Content-Type: application/json [12:16:36] [12:16:36]POST finish read [12:16:36]Found Content-Length = 770 [12:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:36]execute_script... [12:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:36]POST & json_proto [12:16:36]process_json_proto [12:16:36]json parsed OK: [12:16:36]protocol is kg_v1.0 [12:16:36]action value=close_receipt [12:16:36]process_action close_receipt [12:16:36]cmd_close_receipt [12:16:36]MH_GetDate [12:16:36]Write to MH i2c: F0 00 00 17 10 16 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: F0 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: F0 09 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: F0 09 00 17 10 00 25 2F 1E 67 FF C4 6B 64 8A [12:16:36]GetLastDocTimeStamp 1730030759 [12:16:36]current date 1730031397 [12:16:36]FM_GetShiftState [12:16:36]SAM_PROTO_GetShiftState [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 13 01 00 [12:16:36]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 0E 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 41 [12:16:36]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:16:36]wFMCommunicate OK [12:16:36]SAM_PROTO_GetShiftState done [12:16:36]FM_GetShiftState done [12:16:36]opened in 1729989505 [12:16:36]opened+sec_in_day 1730075905 [12:16:36]quantity*price = 150056 [12:16:36]sum+1 = 150058 [12:16:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 84 27.10.2024 12:16 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874674 ФД: 60552 ФПД: 137158602312749 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121637&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60552&fm=137158602312749&tin=02508201610067®Number=0000000000091622&sum=150057 [12:16:37]StoreToDocumentArchive [12:16:37]shift 532 fd 60552 [12:16:37]save to /storage/0532/doc_00060552 [12:16:37]save last doc name /storage/0532/doc_00060552 to /storage/kkm_last_doc_name [12:16:37]save OK [12:16:37]Clear old archive folders... [12:16:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:37]tlvbuf is 001F4F40 [12:16:37]SAM_PROTO_ClearQueue [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 09 00 00 [12:16:37]Write to MH i2c: E2 08 00 25 10 80 09 00 00 00 00 00 00 A7 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [12:16:37]RAPDU: 90 00 [12:16:37]wFMCommunicate OK [12:16:37]SAM_PROTO_ClearQueue done [12:16:37]KKMCreateOFDPacket [12:16:37]OFDProtocolAddRootSTLVToBuf [12:16:37]FM_MakeSignedData [12:16:37]FM_MakeSignedData [12:16:37]SAM_PROTO_SignData [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 0D 01 02 [12:16:37]Write to MH i2c: E2 08 00 26 10 80 0D 01 02 00 00 00 00 AF [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [12:16:37]RAPDU: 90 00 [12:16:37]wFMCommunicate OK [12:16:37]wFMCommunicate request_size=255 [12:16:37]MH_SAM_APDU [12:16: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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EC 00 00 35 04 06 00 7C [12:16:37]Write to MH i2c: E2 02 01 27 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EC 00 00 35 04 06 00 7C 00 00 2C [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [12:16:37]RAPDU: 90 00 [12:16:37]wFMCommunicate OK [12:16:37]wFMCommunicate request_size=10 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 0D 02 02 05 BE B9 C4 CC 2D [12:16:37]Write to MH i2c: E2 0D 00 28 10 80 0D 02 02 05 00 BE B9 C4 CC 2D 00 00 F0 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [12:16:38]RAPDU: 90 00 [12:16:38]wFMCommunicate OK [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 0D 03 02 [12:16:38]Write to MH i2c: E2 08 00 29 10 80 0D 03 02 00 00 00 00 B4 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0B 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 0B 00 29 10 00 8D DF 8F 08 7B 62 C2 DF 90 00 36 [12:16:38]RAPDU: 8D DF 8F 08 7B 62 C2 DF 90 00 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_SignData done [12:16:38]FM_MakeSignedData done [12:16:38]CreateOFDProtocolMessage [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 11 00 00 [12:16:38]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 17 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 0B [12:16:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:16:38]wFMCommunicate OK [12:16:38]CreateOFDProtocolMessage done [12:16:38]OFDSenderStorePacket 60552 [12:16:38]StoreOFDPacket docnum=60552 [12:16:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 02 D1 07 01 D7 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EC 00 00 35 04 06 00 7C BE B9 C4 CC 2D 8D DF 8F 08 7B 62 C2 DF [12:16:38]CheckFolder [12:16:38]dirname=/storage/ofd_packets [12:16:38]CheckFolder done [12:16:38]ProducePacketName [12:16:38]name=ofd_packets/00060552 [12:16:38]NVStorageSaveData ofd_packets/00060552 [12:16:38]File name is /storage/ofd_packets/00060552 [12:16:38]Write 301 bytes [12:16:38]NVStorageSaveData done [12:16:38]OFDSenderStorePacket done [12:16:38]KKMCreateOFDPacket done [12:16:38]NVStorageSaveData kkm_last_timestamp [12:16:38]File name is /storage/kkm_last_timestamp [12:16:38]Write 4 bytes [12:16:38]NVStorageSaveData done [12:16:38]ExternCall_PrintAddStr [12:16:38]wPrintStart [12:16:38]Write to MH i2c: 01 00 00 2B 10 3B [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [12:16:38]RasterBufferAndPrint [12:16:38]line Счет N : (1)3311690 [12:16:38]line ИНН: 02508201610067 [12:16:38]line Контрольно-Кассовый Чек [12:16:38]line ПРОДАЖА [12:16:38]line ТРК (МРК, ГНК) : 12 [12:16:38]line Товар: 2710124130 [12:16:38]line Аи-92-К-4 [12:16:38]line 22.430 * 66.90 [12:16:38]line = 1500.57 [12:16:38]line НДС 12% НСП 1% [12:16:38]line > о реализуемом товаре [12:16:38]line ИТОГО: 1500.57 [12:16:38]line НСП 1% : 13.28 [12:16:38]line НДС 12% : 159.35 [12:16:38]line Наличными: 0.00 [12:16:38]line Безнал.: 1500.57 [12:16:38]line Место: АЗС № 87 "Партнер Нефть" [12:16:38]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [12:16:38]line СНО: Общий режим [12:16:38]line Чек 84 27.10.2024 12:16 [12:16:38]line Смена: 532 ФФД: 1.0 [12:16:38]line ЗНМ: 0300000084 [12:16:38]line РНМ: 0000000000091622 [12:16:38]line Версия ККМ: 001 [12:16:38]line Платежная система: Mbank [12:16:38]line ФМ: 0000000000874674 [12:16:38]line ФД: 60552 [12:16:38]line ФПД: 137158602312749 [12:16:38]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121637&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60552&fm=137158602312749&tin=02508201610067®Number=0000000000091622&sum=150057 [12:16:38]written 0, free lines is 4095 [12:16:38]OFD Sender: Processing packet 60552 [packets to send 30, broken 29] [12:16:38]ProducePacketName [12:16:38]name=ofd_packets/00060552 [12:16:38]OFD Sender: To server: pG, [12:16:38]CommunicateWithHost lk.salyk.kg:30040 [12:16:38]ConnectInit lk.salyk.kg [12:16:38]Connected sock=10 [12:16: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 36 37 34 0F 01 00 00 02 D1 07 01 D7 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 34 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EC 00 00 35 04 06 00 7C BE B9 C4 CC 2D 8D DF 8F 08 7B 62 C2 DF [12:16:38]Write to MH i2c: 01 00 00 54 10 64 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: 01 07 00 54 10 00 00 00 00 00 04 0D 7C [12:16:38]RasterBufferAndPrint [12:16:38]line [12:16:38]line [12:16:38]line [12:16:38]line [12:16:38]line [12:16:38]written 0, free lines is 3339 [12:16:38]MH_Cut [12:16:38]Write to MH i2c: D1 01 00 5B 10 01 3D [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: D1 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: D1 01 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: D1 01 00 5B 10 00 3C [12:16:38]Write to MH i2c: 01 00 00 5C 10 6C [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0E 9A 47 00 0C 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 88 EC 00 00 F4 03 04 00 0D D5 1D 67 B6 04 01 00 00 57 91 63 D1 50 D6 57 DA [12:16:38]CommunicateWithHost err = 0 [12:16:38]CheckOFDResponse [12:16:38]1017 (14) - 77093643461234 [12:16:38]1041 (16) - 0000000000874674 [12:16:38]1040 (4) - 60552 [12:16:38]1012 (4) - 27.10.2024 05:52 [12:16:38]1206 (1) - 0 [12:16:38]OFD Sender: Remove packet 60552 [12:16:38]ProducePacketName [12:16:38]name=ofd_packets/00060552 [12:16:38]NVStorageDeleteData [12:16:39]OFD Sender: No OFD packet to send [12:16:39]*** Cut start [12:16:39]*** Partial cut [12:16:39]*** CUTSNS_PIN = 1 [12:16:39]*** CUTSNS_PIN = 0 [12:16:39]*** Brake cut motor [12:16:39]Read from MH i2c: 01 [12:16:40]MH_I2C_Read... [12:16:40]*** Stop cut motor [12:16:40]*** Cut end [12:16:40]Read from MH i2c: 01 07 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 FF 0F 81 [12:16:40]process_action close_receipt done [12:16:40]requested_data is exist [12:16:40]produce_requested_data [12:16:40]requested_item fm.sn is exist - process it [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 11 00 00 [12:16:40]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 17 00 [12:16:40]MH_I2C_Read... [12:16:40]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 36 37 34 90 00 3E [12:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:16:40]wFMCommunicate OK [12:16:40]requested_item fd.num is exist - process it [12:16:40]SAM_PROTO_GetFieldsCounters [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 13 00 00 [12:16:40]Write to MH i2c: E2 08 00 5E 10 80 13 00 00 00 00 00 00 EA [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 62 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 62 00 5E 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 88 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [12:16: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 88 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_GetFieldsCounters done [12:16:40]requested_item shift.num is exist - process it [12:16:40]requested_item shift.opened is exist - process it [12:16:40]req_shift_opened [12:16:40]FM_GetShiftState [12:16:40]SAM_PROTO_GetShiftState [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 13 01 00 [12:16:40]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0E 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 88 [12:16:40]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_GetShiftState done [12:16:40]FM_GetShiftState done [12:16:40]req_shift_opened done [12:16:40]requested_item shift.open_date is exist - process it [12:16:40]req_shift_open_date [12:16:40]req_shift_open_date done [12:16:40]produce_requested_data done [12:16:40]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60552,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:16:40]process_action_free close_receipt [12:16:40]json_value_free [12:16:40]json_value_free done [12:16:40]process_json_proto returns [12:16:40]Send response to host [12:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60552,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:16:40]free response buf [12:16:40]execute_script done [12:16:40]execute_script returns [12:16:40]free content buf [12:16:40]Sock 9.Close socket [12:16:40]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:02]accept exits with 7 [12:18:02]New connection [12:18:02]New thread 3067362660 created [12:18:02]Thread 3067219300 joined [12:18:02]Waiting for new connection... [12:18:02] Sock 7.Parse request [12:18:02]Sock 7.Check first char [12:18:02]Sock 7.First char is OK [12:18:02]request: POST /json_proto HTTP/1.0 [12:18:02]Method: POST [12:18:02]URL: /json_proto [12:18:02]Method is POST - this is cgi request [12:18:02]url: /json_proto [12:18:02]query_string will be loaded in cgi processing [12:18:02]execute_cgi json_proto POST (null) [12:18:02]execute_cgi path=json_proto method=POST [12:18:02]POST find Content-Length [12:18:02]Host: 172.17.42.196:8080 [12:18:02]Content-Length: 801 [12:18:02]Content-Type: application/json [12:18:02] [12:18:02]POST finish read [12:18:02]Found Content-Length = 801 [12:18:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949584", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:02]execute_script... [12:18:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)3311691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949584", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:02]POST & json_proto [12:18:02]process_json_proto [12:18:02]json parsed OK: [12:18:02]protocol is kg_v1.0 [12:18:02]action value=close_receipt [12:18:02]process_action close_receipt [12:18:02]cmd_close_receipt [12:18:02]MH_GetDate [12:18:02]Write to MH i2c: F0 00 00 60 10 5F [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: F0 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: F0 09 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: F0 09 00 60 10 00 7B 2F 1E 67 FF C4 6B 64 29 [12:18:02]GetLastDocTimeStamp 1730031397 [12:18:02]current date 1730031483 [12:18:02]FM_GetShiftState [12:18:02]SAM_PROTO_GetShiftState [12:18:02]wFMCommunicate request_size=4 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 13 01 00 [12:18:02]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 0E 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 8A [12:18:02]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:18:02]wFMCommunicate OK [12:18:02]SAM_PROTO_GetShiftState done [12:18:02]FM_GetShiftState done [12:18:02]opened in 1729989505 [12:18:02]opened+sec_in_day 1730075905 [12:18:02]quantity*price = 0 [12:18:02]sum+1 = 1 [12:18:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 85 27.10.2024 12:18 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 Талоны: Топливные Талоны 3949584 ФМ: 0000000000874674 ФД: 60553 ФПД: 204287421529015 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121803&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60553&fm=204287421529015&tin=02508201610067®Number=0000000000091622&sum=0 [12:18:03]StoreToDocumentArchive [12:18:03]shift 532 fd 60553 [12:18:03]save to /storage/0532/doc_00060553 [12:18:03]save last doc name /storage/0532/doc_00060553 to /storage/kkm_last_doc_name [12:18:03]save OK [12:18:03]Clear old archive folders... [12:18:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:03]tlvbuf is 001F17F0 [12:18:03]SAM_PROTO_ClearQueue [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 09 00 00 [12:18:03]Write to MH i2c: E2 08 00 6E 10 80 09 00 00 00 00 00 00 F0 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [12:18:03]RAPDU: 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_ClearQueue done [12:18:03]KKMCreateOFDPacket [12:18:03]OFDProtocolAddRootSTLVToBuf [12:18:03]FM_MakeSignedData [12:18:03]FM_MakeSignedData [12:18:03]SAM_PROTO_SignData [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 0D 01 02 [12:18:03]Write to MH i2c: E2 08 00 6F 10 80 0D 01 02 00 00 00 00 F8 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [12:18:04]RAPDU: 90 00 [12:18:04]wFMCommunicate OK [12:18:04]wFMCommunicate request_size=255 [12:18:04]MH_SAM_APDU [12:18: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7B 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EC 00 00 35 04 06 00 B9 [12:18:04]Write to MH i2c: E2 02 01 70 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7B 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EC 00 00 35 04 06 00 B9 00 00 36 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [12:18:04]RAPDU: 90 00 [12:18:04]wFMCommunicate OK [12:18:04]wFMCommunicate request_size=10 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 0D 02 02 05 CC 5F 31 3B B7 [12:18:04]Write to MH i2c: E2 0D 00 71 10 80 0D 02 02 05 00 CC 5F 31 3B B7 00 00 53 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [12:18:04]RAPDU: 90 00 [12:18:04]wFMCommunicate OK [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 0D 03 02 [12:18:04]Write to MH i2c: E2 08 00 72 10 80 0D 03 02 00 00 00 00 FD [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:04]OFD Sender: No OFD packet to send [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0B 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0B 00 72 10 00 6E 4E 3C 67 26 D1 39 11 90 00 9E [12:18:04]RAPDU: 6E 4E 3C 67 26 D1 39 11 90 00 [12:18:04]wFMCommunicate OK [12:18:04]SAM_PROTO_SignData done [12:18:04]FM_MakeSignedData done [12:18:04]CreateOFDProtocolMessage [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 11 00 00 [12:18:04]Write to MH i2c: E2 08 00 73 10 80 11 00 00 00 00 00 00 FD [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 17 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 17 00 73 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 54 [12:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:18:04]wFMCommunicate OK [12:18:04]CreateOFDProtocolMessage done [12:18:04]OFDSenderStorePacket 60553 [12:18:04]StoreOFDPacket docnum=60553 [12:18:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0F 01 00 00 7D 04 07 01 07 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7B 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EC 00 00 35 04 06 00 B9 CC 5F 31 3B B7 6E 4E 3C 67 26 D1 39 11 [12:18:04]CheckFolder [12:18:04]dirname=/storage/ofd_packets [12:18:04]CheckFolder done [12:18:04]ProducePacketName [12:18:04]name=ofd_packets/00060553 [12:18:04]NVStorageSaveData ofd_packets/00060553 [12:18:04]File name is /storage/ofd_packets/00060553 [12:18:04]Write 301 bytes [12:18:04]NVStorageSaveData done [12:18:04]OFDSenderStorePacket done [12:18:04]KKMCreateOFDPacket done [12:18:04]NVStorageSaveData kkm_last_timestamp [12:18:04]File name is /storage/kkm_last_timestamp [12:18:04]Write 4 bytes [12:18:04]NVStorageSaveData done [12:18:04]ExternCall_PrintAddStr [12:18:04]wPrintStart [12:18:04]Write to MH i2c: 01 00 00 74 10 84 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 07 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 FF 0F 99 [12:18:04]RasterBufferAndPrint [12:18:04]line Счет N : (1)3311691 [12:18:04]line ИНН: 02508201610067 [12:18:04]line Контрольно-Кассовый Чек [12:18:04]line ПРОДАЖА [12:18:04]line ТРК (МРК, ГНК) : 32 [12:18:04]line Товар: 2710124130 [12:18:04]line Аи-92-К-4 [12:18:04]line 20.000 * 0.00 [12:18:04]line = 0.00 [12:18:04]line НДС 12% НСП 1% [12:18:04]line > о реализуемом товаре [12:18:04]line ИТОГО: 0.00 [12:18:04]line НСП 1% : 0.00 [12:18:04]line НДС 12% : 0.00 [12:18:04]line Наличными: 0.00 [12:18:04]line Безнал.: 0.00 [12:18:04]line Место: АЗС № 87 "Партнер Нефть" [12:18:04]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [12:18:04]line СНО: Общий режим [12:18:04]line Чек 85 27.10.2024 12:18 [12:18:04]line Смена: 532 ФФД: 1.0 [12:18:04]line ЗНМ: 0300000084 [12:18:04]line РНМ: 0000000000091622 [12:18:04]line Версия ККМ: 001 [12:18:04]line Талоны: Топливные Талоны [12:18:04]line 3949584 [12:18:04]line ФМ: 0000000000874674 [12:18:04]line ФД: 60553 [12:18:04]line ФПД: 204287421529015 [12:18:04]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121803&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60553&fm=204287421529015&tin=02508201610067®Number=0000000000091622&sum=0 [12:18:04]written 0, free lines is 4095 [12:18:04]OFD Sender: Processing packet 60553 [packets to send 30, broken 29] [12:18:04]ProducePacketName [12:18:04]name=ofd_packets/00060553 [12:18:04]OFD Sender: To server: pG, [12:18:04]CommunicateWithHost lk.salyk.kg:30040 [12:18:04]ConnectInit lk.salyk.kg [12:18:04]Connected sock=10 [12:18: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 36 37 34 0F 01 00 00 7D 04 07 01 07 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 7B 2F 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EC 00 00 35 04 06 00 B9 CC 5F 31 3B B7 6E 4E 3C 67 26 D1 39 11 [12:18:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 A8 8E 47 00 8C 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 89 EC 00 00 F4 03 04 00 63 D5 1D 67 B6 04 01 00 00 84 4E A7 B8 50 99 3D 46 [12:18:05]CommunicateWithHost err = 0 [12:18:05]CheckOFDResponse [12:18:05]1017 (14) - 77093643461234 [12:18:05]1041 (16) - 0000000000874674 [12:18:05]1040 (4) - 60553 [12:18:05]1012 (4) - 27.10.2024 05:53 [12:18:05]1206 (1) - 0 [12:18:05]OFD Sender: Remove packet 60553 [12:18:05]ProducePacketName [12:18:05]name=ofd_packets/00060553 [12:18:05]NVStorageDeleteData [12:18:05]Write to MH i2c: 01 00 00 9E 10 AE [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 9E 10 00 00 00 00 00 DD 0C 9E [12:18:05]RasterBufferAndPrint [12:18:05]line [12:18:05]line [12:18:05]line [12:18:05]line [12:18:05]line [12:18:05]written 0, free lines is 3300 [12:18:05]MH_Cut [12:18:05]Write to MH i2c: D1 01 00 A5 10 01 87 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: D1 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: D1 01 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: D1 01 00 A5 10 00 86 [12:18:05]Write to MH i2c: 01 00 00 A6 10 B6 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]OFD Sender: No OFD packet to send [12:18:06]*** Cut start [12:18:06]*** Partial cut [12:18:06]*** CUTSNS_PIN = 1 [12:18:06]*** CUTSNS_PIN = 0 [12:18:06]*** Brake cut motor [12:18:06]Read from MH i2c: 01 [12:18:06]MH_I2C_Read... [12:18:06]*** Stop cut motor [12:18:06]*** Cut end [12:18:06]Read from MH i2c: 01 07 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 FF 0F CB [12:18:06]process_action close_receipt done [12:18:06]requested_data is exist [12:18:06]produce_requested_data [12:18:06]requested_item fm.sn is exist - process it [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 11 00 00 [12:18:06]Write to MH i2c: E2 08 00 A7 10 80 11 00 00 00 00 00 00 31 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 17 00 [12:18:06]MH_I2C_Read... [12:18:06]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 36 37 34 90 00 88 [12:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:18:06]wFMCommunicate OK [12:18:06]requested_item fd.num is exist - process it [12:18:06]SAM_PROTO_GetFieldsCounters [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 13 00 00 [12:18:06]Write to MH i2c: E2 08 00 A8 10 80 13 00 00 00 00 00 00 34 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 62 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 62 00 A8 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 89 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [12:18: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 89 EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:06]wFMCommunicate OK [12:18:06]SAM_PROTO_GetFieldsCounters done [12:18:06]requested_item shift.num is exist - process it [12:18:06]requested_item shift.opened is exist - process it [12:18:06]req_shift_opened [12:18:06]FM_GetShiftState [12:18:06]SAM_PROTO_GetShiftState [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 13 01 00 [12:18:06]Write to MH i2c: E2 08 00 A9 10 80 13 01 00 00 00 00 00 36 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 0E 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 0E 00 A9 10 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D2 [12:18:06]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:18:06]wFMCommunicate OK [12:18:06]SAM_PROTO_GetShiftState done [12:18:06]FM_GetShiftState done [12:18:06]req_shift_opened done [12:18:06]requested_item shift.open_date is exist - process it [12:18:06]req_shift_open_date [12:18:06]req_shift_open_date done [12:18:06]produce_requested_data done [12:18:06]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60553,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:18:06]process_action_free close_receipt [12:18:06]json_value_free [12:18:06]json_value_free done [12:18:06]process_json_proto returns [12:18:06]Send response to host [12:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60553,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:18:06]free response buf [12:18:06]execute_script done [12:18:06]execute_script returns [12:18:06]free content buf [12:18:06]Sock 7.Close socket [12:18:06]Sock 7.Thread stoped [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:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:22]accept exits with 9 [12:33:22]New connection [12:33:22]New thread 3067219300 created [12:33:22]Thread 3067362660 joined [12:33:22]Waiting for new connection... [12:33:22] Sock 9.Parse request [12:33:22]Sock 9.Check first char [12:33:22]Sock 9.First char is OK [12:33:22]request: POST /json_proto HTTP/1.0 [12:33:22]Method: POST [12:33:22]URL: /json_proto [12:33:22]Method is POST - this is cgi request [12:33:22]url: /json_proto [12:33:22]query_string will be loaded in cgi processing [12:33:22]execute_cgi json_proto POST (null) [12:33:22]execute_cgi path=json_proto method=POST [12:33:22]POST find Content-Length [12:33:22]Host: 172.17.42.196:8080 [12:33:22]Content-Length: 1376 [12:33:22]Content-Type: application/json [12:33:22] [12:33:22]POST finish read [12:33:22]Found Content-Length = 1376 [12:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200177", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:22]execute_script... [12:33:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200177", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:22]POST & json_proto [12:33:22]process_json_proto [12:33:22]json parsed OK: [12:33:22]protocol is kg_v1.0 [12:33:22]action value=close_receipt [12:33:22]process_action close_receipt [12:33:22]cmd_close_receipt [12:33:22]MH_GetDate [12:33:22]Write to MH i2c: F0 00 00 AA 10 A9 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: F0 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: F0 09 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: F0 09 00 AA 10 00 13 33 1E 67 FF C4 6B 64 0F [12:33:22]GetLastDocTimeStamp 1730031483 [12:33:22]current date 1730032403 [12:33:22]FM_GetShiftState [12:33:22]SAM_PROTO_GetShiftState [12:33:22]wFMCommunicate request_size=4 [12:33:22]MH_SAM_APDU [12:33:22]CAPDU: 80 13 01 00 [12:33:22]Write to MH i2c: E2 08 00 AB 10 80 13 01 00 00 00 00 00 38 [12:33:22]Write i2c OK [12:33:22]MH_I2C_Read... [12:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:22]Read from MH i2c: E2 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0E 00 [12:33:22]MH_I2C_Read... [12:33:22]Read from MH i2c: E2 0E 00 AB 10 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 D4 [12:33:22]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:33:22]wFMCommunicate OK [12:33:22]SAM_PROTO_GetShiftState done [12:33:22]FM_GetShiftState done [12:33:22]opened in 1729989505 [12:33:22]opened+sec_in_day 1730075905 [12:33:22]quantity*price = 12500 [12:33:22]sum+1 = 12501 [12:33:22]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 87 27.10.2024 12:37 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60555 ФПД: 49457688571762 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123725&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60555&fm=49457688571762&tin=02508201610067®Number=0000000000091622&sum=9500 0 [12:37:26]StoreToDocumentArchive [12:37:26]shift 532 fd 60555 [12:37:26]save to /storage/0532/doc_00060555 [12:37:26]save last doc name /storage/0532/doc_00060555 to /storage/kkm_last_doc_name [12:37:26]save OK [12:37:26]Clear old archive folders... [12:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:37:26]tlvbuf is 010F7B60 [12:37:26]SAM_PROTO_ClearQueue [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 09 00 00 [12:37:26]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]SAM_PROTO_ClearQueue done [12:37:26]KKMCreateOFDPacket [12:37:26]OFDProtocolAddRootSTLVToBuf [12:37:26]FM_MakeSignedData [12:37:26]FM_MakeSignedData [12:37:26]SAM_PROTO_SignData [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 01 02 [12:37:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]wFMCommunicate request_size=255 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:37:26]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 70 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:37:27]RAPDU: 90 00 [12:37:27]wFMCommunicate OK [12:37:27]wFMCommunicate request_size=52 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EC 00 00 35 04 06 00 2C FB 43 F5 6F 72 [12:37:27]Write to MH i2c: E2 37 00 2E 00 80 0D 02 02 2F 00 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EC 00 00 35 04 06 00 2C FB 43 F5 6F 72 00 00 21 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:37:27]RAPDU: 90 00 [12:37:27]wFMCommunicate OK [12:37:27]wFMCommunicate request_size=4 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 0D 03 02 [12:37:27]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 0B 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 0B 00 2F 00 00 46 F4 72 90 12 6D 2C 90 90 00 22 [12:37:27]RAPDU: 46 F4 72 90 12 6D 2C 90 90 00 [12:37:27]wFMCommunicate OK [12:37:27]SAM_PROTO_SignData done [12:37:27]FM_MakeSignedData done [12:37:27]CreateOFDProtocolMessage [12:37:27]wFMCommunicate request_size=4 [12:37:27]MH_SAM_APDU [12:37:27]CAPDU: 80 11 00 00 [12:37:27]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:27]Read from MH i2c: E2 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 17 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 01 [12:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:37:27]wFMCommunicate OK [12:37:27]CreateOFDProtocolMessage done [12:37:27]OFDSenderStorePacket 60555 [12:37:27]StoreOFDPacket docnum=60555 [12:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 39 01 00 00 F2 05 31 01 97 0A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EC 00 00 35 04 06 00 2C FB 43 F5 6F 72 46 F4 72 90 12 6D 2C 90 [12:37:27]CheckFolder [12:37:27]dirname=/storage/ofd_packets [12:37:27]CheckFolder done [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00060555 [12:37:27]NVStorageSaveData ofd_packets/00060555 [12:37:27]File name is /storage/ofd_packets/00060555 [12:37:27]Write 343 bytes [12:37:27]NVStorageSaveData done [12:37:27]OFDSenderStorePacket done [12:37:27]KKMCreateOFDPacket done [12:37:27]NVStorageSaveData kkm_last_timestamp [12:37:27]File name is /storage/kkm_last_timestamp [12:37:27]Write 4 bytes [12:37:27]NVStorageSaveData done [12:37:27]ExternCall_PrintAddStr [12:37:27]wPrintStart [12:37:27]Write to MH i2c: 01 00 00 31 00 31 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:37:27]RasterBufferAndPrint [12:37:27]line Счет N : (3)200178 [12:37:27]line ИНН: 02508201610067 [12:37:27]line Контрольно-Кассовый Чек [12:37:27]line ПРОДАЖА [12:37:27]line Товар: 4700000480050 [12:37:27]line Напиток Nitro Energy эн green ж/б 0,45л [12:37:27]line 1.000 * 95.00 [12:37:27]line = 95.00 [12:37:27]line НДС 12% НСП 1% [12:37:27]line > о реализуемом товаре [12:37:27]line ИТОГО: 95.00 [12:37:27]line НСП 1% : 0.84 [12:37:27]line НДС 12% : 10.09 [12:37:27]line Наличными: 95.00 [12:37:27]line Безнал.: 0.00 [12:37:27]line Место: АЗС № 87 "Партнер Нефть" [12:37:27]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [12:37:27]line СНО: Общий режим [12:37:27]line Чек 87 27.10.2024 12:37 [12:37:27]line Смена: 532 ФФД: 1.0 [12:37:27]line ЗНМ: 0300000084 [12:37:27]line РНМ: 0000000000091622 [12:37:27]line Версия ККМ: 001 [12:37:27]line ФМ: 0000000000874674 [12:37:27]line ФД: 60555 [12:37:27]line ФПД: 49457688571762 [12:37:27]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123725&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60555&fm=49457688571762&tin=02508201610067®Number=0000000000091622&sum=9500 [12:37:27]line 0 [12:37:27]written 0, free lines is 4095 [12:37:27]OFD Sender: Processing packet 60555 [packets to send 30, broken 29] [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00060555 [12:37:27]OFD Sender: To server: pG, [12:37:27]CommunicateWithHost lk.salyk.kg:30040 [12:37:27]ConnectInit lk.salyk.kg [12:37:27]Connected sock=10 [12:37: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 36 37 34 39 01 00 00 F2 05 31 01 97 0A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 05 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8B EC 00 00 35 04 06 00 2C FB 43 F5 6F 72 46 F4 72 90 12 6D 2C 90 [12:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 11 8A 47 00 C9 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 36 37 34 10 04 04 00 8B EC 00 00 F4 03 04 00 EE D9 1D 67 B6 04 01 00 00 19 AC 03 45 EA 32 98 20 [12:37:27]CommunicateWithHost err = 0 [12:37:27]CheckOFDResponse [12:37:27]1017 (14) - 77093643461234 [12:37:27]1041 (16) - 0000000000874674 [12:37:27]1040 (4) - 60555 [12:37:27]1012 (4) - 27.10.2024 06:13 [12:37:27]1206 (1) - 0 [12:37:27]OFD Sender: Remove packet 60555 [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00060555 [12:37:27]NVStorageDeleteData [12:37:27]Write to MH i2c: 01 00 00 5A 00 5A [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 F0 0C 5D [12:37:27]RasterBufferAndPrint [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]written 0, free lines is 3330 [12:37:27]MH_Cut [12:37:27]Write to MH i2c: D1 01 00 61 00 01 33 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 01 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 01 00 61 00 00 32 [12:37:27]Write to MH i2c: 01 00 00 62 00 62 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:28]OFD Sender: No OFD packet to send [12:37:28]*** Cut start [12:37:28]*** Partial cut [12:37:28]*** CUTSNS_PIN = 1 [12:37:28]*** CUTSNS_PIN = 0 [12:37:28]*** Brake cut motor [12:37:29]Read from MH i2c: 01 [12:37:29]MH_I2C_Read... [12:37:29]*** Stop cut motor [12:37:29]*** Cut end [12:37:29]Read from MH i2c: 01 07 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [12:37:29]process_action close_receipt done [12:37:29]requested_data is exist [12:37:29]produce_requested_data [12:37:29]requested_item fm.sn is exist - process it [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 11 00 00 [12:37:29]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 17 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 34 [12:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:37:29]wFMCommunicate OK [12:37:29]requested_item fd.num is exist - process it [12:37:29]SAM_PROTO_GetFieldsCounters [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 00 00 [12:37:29]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [12:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8B EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetFieldsCounters done [12:37:29]requested_item shift.num is exist - process it [12:37:29]requested_item shift.opened is exist - process it [12:37:29]req_shift_opened [12:37:29]FM_GetShiftState [12:37:29]SAM_PROTO_GetShiftState [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 01 00 [12:37:29]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 7E [12:37:29]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetShiftState done [12:37:29]FM_GetShiftState done [12:37:29]req_shift_opened done [12:37:29]requested_item shift.open_date is exist - process it [12:37:29]req_shift_open_date [12:37:29]req_shift_open_date done [12:37:29]produce_requested_data done [12:37:29]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60555,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:37:29]process_action_free close_receipt [12:37:29]json_value_free [12:37:29]json_value_free done [12:37:29]process_json_proto returns [12:37:29]Send response to host [12:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60555,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:37:29]free response buf [12:37:29]execute_script done [12:37:29]execute_script returns [12:37:29]free content buf [12:37:29]Sock 8.Close socket [12:37:29]Sock 8.Thread stoped [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:45]accept exits with 9 [12:37:45]New connection [12:37:45]New thread 3066719588 created [12:37:45]Thread 3066862948 joined [12:37:45]Waiting for new connection... [12:37:45] Sock 9.Parse request [12:37:45]Sock 9.Check first char [12:37:45]Sock 9.First char is OK [12:37:45]request: POST /json_proto HTTP/1.0 [12:37:45]Method: POST [12:37:45]URL: /json_proto [12:37:45]Method is POST - this is cgi request [12:37:45]url: /json_proto [12:37:45]query_string will be loaded in cgi processing [12:37:45]execute_cgi json_proto POST (null) [12:37:45]execute_cgi path=json_proto method=POST [12:37:45]POST find Content-Length [12:37:45]Host: 172.17.42.196:8080 [12:37:45]Content-Length: 652 [12:37:45]Content-Type: application/json [12:37:45] [12:37:45]POST finish read [12:37:45]Found Content-Length = 652 [12:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200179", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:45]execute_script... [12:37:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)200179", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:45]POST & json_proto [12:37:45]process_json_proto [12:37:45]json parsed OK: [12:37:45]protocol is kg_v1.0 [12:37:45]action value=close_receipt [12:37:45]process_action close_receipt [12:37:45]cmd_close_receipt [12:37:45]MH_GetDate [12:37:45]Write to MH i2c: F0 00 00 66 00 55 [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: F0 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: F0 09 00 [12:37:45]MH_I2C_Read... [12:37:45]Read from MH i2c: F0 09 00 66 00 00 1A 34 1E 67 FF C4 6B 64 C3 [12:37:45]GetLastDocTimeStamp 1730032645 [12:37:45]current date 1730032666 [12:37:45]FM_GetShiftState [12:37:45]SAM_PROTO_GetShiftState [12:37:45]wFMCommunicate request_size=4 [12:37:45]MH_SAM_APDU [12:37:45]CAPDU: 80 13 01 00 [12:37:45]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [12:37:45]Write i2c OK [12:37:45]MH_I2C_Read... [12:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:46]Read from MH i2c: E2 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 0E 00 [12:37:46]MH_I2C_Read... [12:37:46]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 80 [12:37:46]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:37:46]wFMCommunicate OK [12:37:46]SAM_PROTO_GetShiftState done [12:37:46]FM_GetShiftState done [12:37:46]opened in 1729989505 [12:37:46]opened+sec_in_day 1730075905 [12:37:46]quantity*price = 7500 [12:37:46]sum+1 = 7501 [12:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 87 "Партнер Нефть" Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 СНО: Общий режим Чек 88 27.10.2024 12:37 Смена: 532 ФФД: 1.0 ЗНМ: 0300000084 РНМ: 0000000000091622 Версия ККМ: 001 ФМ: 0000000000874674 ФД: 60556 ФПД: 273976109370707 http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123746&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60556&fm=273976109370707&tin=02508201610067®Number=0000000000091622&sum=7500 0 [12:37:47]StoreToDocumentArchive [12:37:47]shift 532 fd 60556 [12:37:47]save to /storage/0532/doc_00060556 [12:37:47]save last doc name /storage/0532/doc_00060556 to /storage/kkm_last_doc_name [12:37:47]save OK [12:37:47]Clear old archive folders... [12:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=275 [12:37:47]tlvbuf is 010A3480 [12:37:47]SAM_PROTO_ClearQueue [12:37:47]wFMCommunicate request_size=4 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 09 00 00 [12:37:47]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [12:37:47]RAPDU: 90 00 [12:37:47]wFMCommunicate OK [12:37:47]SAM_PROTO_ClearQueue done [12:37:47]KKMCreateOFDPacket [12:37:47]OFDProtocolAddRootSTLVToBuf [12:37:47]FM_MakeSignedData [12:37:47]FM_MakeSignedData [12:37:47]SAM_PROTO_SignData [12:37:47]wFMCommunicate request_size=4 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 0D 01 02 [12:37:47]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [12:37:47]RAPDU: 90 00 [12:37:47]wFMCommunicate OK [12:37:47]wFMCommunicate request_size=255 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 [12:37:47]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 00 00 19 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:37:47]RAPDU: 90 00 [12:37:47]wFMCommunicate OK [12:37:47]wFMCommunicate request_size=34 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EC 00 00 35 04 06 00 F9 2E 08 AD 0D 53 [12:37:47]Write to MH i2c: E2 25 00 77 00 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EC 00 00 35 04 06 00 F9 2E 08 AD 0D 53 00 00 6A [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:37:47]RAPDU: 90 00 [12:37:47]wFMCommunicate OK [12:37:47]wFMCommunicate request_size=4 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 0D 03 02 [12:37:47]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 0B 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 0B 00 78 00 00 B8 3B 7F 08 86 22 44 AF 90 00 09 [12:37:47]RAPDU: B8 3B 7F 08 86 22 44 AF 90 00 [12:37:47]wFMCommunicate OK [12:37:47]SAM_PROTO_SignData done [12:37:47]FM_MakeSignedData done [12:37:47]CreateOFDProtocolMessage [12:37:47]wFMCommunicate request_size=4 [12:37:47]MH_SAM_APDU [12:37:47]CAPDU: 80 11 00 00 [12:37:47]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:47]Read from MH i2c: E2 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: E2 17 00 [12:37:47]MH_I2C_Read... [12:37:47]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 36 37 34 90 00 4A [12:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:37:47]wFMCommunicate OK [12:37:47]CreateOFDProtocolMessage done [12:37:47]OFDSenderStorePacket 60556 [12:37:47]StoreOFDPacket docnum=60556 [12:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 27 01 00 00 4E FD 1F 01 13 D6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EC 00 00 35 04 06 00 F9 2E 08 AD 0D 53 B8 3B 7F 08 86 22 44 AF [12:37:47]CheckFolder [12:37:47]dirname=/storage/ofd_packets [12:37:47]CheckFolder done [12:37:47]ProducePacketName [12:37:47]name=ofd_packets/00060556 [12:37:47]NVStorageSaveData ofd_packets/00060556 [12:37:47]File name is /storage/ofd_packets/00060556 [12:37:47]Write 325 bytes [12:37:47]NVStorageSaveData done [12:37:47]OFDSenderStorePacket done [12:37:47]KKMCreateOFDPacket done [12:37:47]NVStorageSaveData kkm_last_timestamp [12:37:47]File name is /storage/kkm_last_timestamp [12:37:47]Write 4 bytes [12:37:47]NVStorageSaveData done [12:37:47]ExternCall_PrintAddStr [12:37:47]wPrintStart [12:37:47]Write to MH i2c: 01 00 00 7A 00 7A [12:37:47]Write i2c OK [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 [12:37:47]MH_I2C_Read... [12:37:47]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [12:37:47]RasterBufferAndPrint [12:37:47]line Счет N : (3)200179 [12:37:47]line ИНН: 02508201610067 [12:37:47]line Контрольно-Кассовый Чек [12:37:47]line ПРОДАЖА [12:37:47]line Товар: 54491472 [12:37:47]line Напиток Кока-Кола 0,5л [12:37:47]line 1.000 * 75.00 [12:37:47]line = 75.00 [12:37:47]line НДС 12% НСП 1% [12:37:47]line > о реализуемом товаре [12:37:47]line ИТОГО: 75.00 [12:37:47]line НСП 1% : 0.66 [12:37:47]line НДС 12% : 7.96 [12:37:47]line Наличными: 75.00 [12:37:47]line Безнал.: 0.00 [12:37:47]line Место: АЗС № 87 "Партнер Нефть" [12:37:47]line Адрес: 720001, с. Бекабад, ул. Бекабад 71, 40.860898, 72.984621 [12:37:47]line СНО: Общий режим [12:37:47]line Чек 88 27.10.2024 12:37 [12:37:47]line Смена: 532 ФФД: 1.0 [12:37:47]line ЗНМ: 0300000084 [12:37:47]line РНМ: 0000000000091622 [12:37:47]line Версия ККМ: 001 [12:37:47]line ФМ: 0000000000874674 [12:37:47]line ФД: 60556 [12:37:47]line ФПД: 273976109370707 [12:37:47]line http://92.62.72.170:30105/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123746&type=1&operation_type=1&fn_number=0000000000874674&fd_number=60556&fm=273976109370707&tin=02508201610067®Number=0000000000091622&sum=7500 [12:37:47]line 0 [12:37:47]written 0, free lines is 4095 [12:37:47]OFD Sender: Processing packet 60556 [packets to send 30, broken 29] [12:37:47]ProducePacketName [12:37:47]name=ofd_packets/00060556 [12:37:47]OFD Sender: To server: pG, [12:37:47]CommunicateWithHost lk.salyk.kg:30040 [12:37:47]ConnectInit lk.salyk.kg [12:37:47]Connected sock=10 [12: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 36 37 34 27 01 00 00 4E FD 1F 01 13 D6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 1A 34 1E 67 0E 04 04 00 14 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8C EC 00 00 35 04 06 00 F9 2E 08 AD 0D 53 B8 3B 7F 08 86 22 44 AF [12: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 36 37 34 4F 00 00 00 8E BF 47 00 71 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 36 37 34 10 04 04 00 8C EC 00 00 F4 03 04 00 02 DA 1D 67 B6 04 01 00 00 72 10 45 76 32 04 75 8A [12:37:48]CommunicateWithHost err = 0 [12:37:48]CheckOFDResponse [12:37:48]1017 (14) - 77093643461234 [12:37:48]1041 (16) - 0000000000874674 [12:37:48]1040 (4) - 60556 [12:37:48]1012 (4) - 27.10.2024 06:13 [12:37:48]1206 (1) - 0 [12:37:48]OFD Sender: Remove packet 60556 [12:37:48]ProducePacketName [12:37:48]name=ofd_packets/00060556 [12:37:48]NVStorageDeleteData [12:37:48]Write to MH i2c: 01 00 00 A2 00 A2 [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: 01 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: 01 07 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 FC 0C B1 [12:37:48]RasterBufferAndPrint [12:37:48]line [12:37:48]line [12:37:48]line [12:37:48]line [12:37:48]line [12:37:48]written 0, free lines is 3333 [12:37:48]MH_Cut [12:37:48]Write to MH i2c: D1 01 00 A9 00 01 7B [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: D1 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: D1 01 00 [12:37:48]MH_I2C_Read... [12:37:48]Read from MH i2c: D1 01 00 A9 00 00 7A [12:37:48]Write to MH i2c: 01 00 00 AA 00 AA [12:37:48]Write i2c OK [12:37:48]MH_I2C_Read... [12:37:48]OFD Sender: No OFD packet to send [12:37:48]*** Cut start [12:37:48]*** Partial cut [12:37:48]*** CUTSNS_PIN = 1 [12:37:48]*** CUTSNS_PIN = 0 [12:37:49]*** Brake cut motor [12:37:49]Read from MH i2c: 01 [12:37:49]MH_I2C_Read... [12:37:49]*** Stop cut motor [12:37:49]*** Cut end [12:37:49]Read from MH i2c: 01 07 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [12:37:49]process_action close_receipt done [12:37:49]requested_data is exist [12:37:49]produce_requested_data [12:37:49]requested_item fm.sn is exist - process it [12:37:49]wFMCommunicate request_size=4 [12:37:49]MH_SAM_APDU [12:37:49]CAPDU: 80 11 00 00 [12:37:49]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:49]Read from MH i2c: E2 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 17 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 7C [12:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:37:49]wFMCommunicate OK [12:37:49]requested_item fd.num is exist - process it [12:37:49]SAM_PROTO_GetFieldsCounters [12:37:49]wFMCommunicate request_size=4 [12:37:49]MH_SAM_APDU [12:37:49]CAPDU: 80 13 00 00 [12:37:49]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:49]Read from MH i2c: E2 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 62 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 62 00 AC 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [12:37: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:49]wFMCommunicate OK [12:37:49]SAM_PROTO_GetFieldsCounters done [12:37:49]requested_item shift.num is exist - process it [12:37:49]requested_item shift.opened is exist - process it [12:37:49]req_shift_opened [12:37:49]FM_GetShiftState [12:37:49]SAM_PROTO_GetShiftState [12:37:49]wFMCommunicate request_size=4 [12:37:49]MH_SAM_APDU [12:37:49]CAPDU: 80 13 01 00 [12:37:49]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [12:37:49]Write i2c OK [12:37:49]MH_I2C_Read... [12:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:49]Read from MH i2c: E2 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 0E 00 [12:37:49]MH_I2C_Read... [12:37:49]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 C6 [12:37:49]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:37:49]wFMCommunicate OK [12:37:49]SAM_PROTO_GetShiftState done [12:37:49]FM_GetShiftState done [12:37:49]req_shift_opened done [12:37:49]requested_item shift.open_date is exist - process it [12:37:49]req_shift_open_date [12:37:49]req_shift_open_date done [12:37:49]produce_requested_data done [12:37:49]produce_requested_data return {"fm.sn":"0000000000874674","fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:37:49]process_action_free close_receipt [12:37:49]json_value_free [12:37:49]json_value_free done [12:37:49]process_json_proto returns [12:37:49]Send response to host [12:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874674","fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:37:49]free response buf [12:37:49]execute_script done [12:37:49]execute_script returns [12:37:49]free content buf [12:37:49]Sock 9.Close socket [12:37:49]Sock 9.Thread stoped [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:50]accept exits with 8 [12:46:50]New connection [12:46:50]New thread 3066862948 created [12:46:50]Thread 3066719588 joined [12:46:50]Waiting for new connection... [12:46:50] Sock 8.Parse request [12:46:50]Sock 8.Check first char [12:46:50]Sock 8.First char is OK [12:46:50]request: POST /json_proto HTTP/1.0 [12:46:50]Method: POST [12:46:50]URL: /json_proto [12:46:50]Method is POST - this is cgi request [12:46:50]url: /json_proto [12:46:50]query_string will be loaded in cgi processing [12:46:50]execute_cgi json_proto POST (null) [12:46:50]execute_cgi path=json_proto method=POST [12:46:50]POST find Content-Length [12:46:50]Host: 172.17.42.196:8080 [12:46:50]Content-Length: 215 [12:46:50]Content-Type: application/json [12:46:50] [12:46:50]POST finish read [12:46:50]Found Content-Length = 215 [12:46:50]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" ] } } [12:46:50]execute_script... [12:46:50]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" ] } } [12:46:50]POST & json_proto [12:46:50]process_json_proto [12:46:50]json parsed OK: [12:46:50]protocol is kg_v1.0 [12:46:50]action value=get_value [12:46:50]process_action get_value [12:46:50]cmd_get_value [12:46:50]process_action get_value done [12:46:50]requested_data is exist [12:46:50]produce_requested_data [12:46:50]requested_item kkm.sn is exist - process it [12:46:50]requested_item kkm.ver is exist - process it [12:46:50]requested_item fm.sn is exist - process it [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 11 00 00 [12:46:50]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 17 00 [12:46:50]MH_I2C_Read... [12:46:50]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 36 37 34 90 00 7F [12:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:46:50]wFMCommunicate OK [12:46:50]requested_item fd.num is exist - process it [12:46:50]SAM_PROTO_GetFieldsCounters [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 13 00 00 [12:46:50]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 62 00 [12:46:50]MH_I2C_Read... [12:46:50]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [12:46: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_GetFieldsCounters done [12:46:50]requested_item shift.num is exist - process it [12:46:50]requested_item shift.opened is exist - process it [12:46:50]req_shift_opened [12:46:50]FM_GetShiftState [12:46:50]SAM_PROTO_GetShiftState [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 13 01 00 [12:46:50]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:50]Read from MH i2c: E2 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 [12:46:50]MH_I2C_Read... [12:46:50]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 C9 [12:46:50]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_GetShiftState done [12:46:50]FM_GetShiftState done [12:46:50]req_shift_opened done [12:46:50]requested_item shift.open_date is exist - process it [12:46:50]req_shift_open_date [12:46:50]req_shift_open_date done [12:46:50]produce_requested_data done [12:46:50]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:46:50]process_action_free get_value [12:46:50]json_value_free [12:46:50]json_value_free done [12:46:50]process_json_proto returns [12:46:50]Send response to host [12:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:46:50]free response buf [12:46:50]execute_script done [12:46:50]execute_script returns [12:46:50]free content buf [12:46:50]Sock 8.Close socket [12:46:50]Sock 8.Thread stoped [12:46:50]accept exits with 9 [12:46:50]New connection [12:46:50]New thread 3066719588 created [12:46:50]Thread 3066862948 joined [12:46:50]Waiting for new connection... [12:46:50] Sock 9.Parse request [12:46:50]Sock 9.Check first char [12:46:50]Sock 9.First char is OK [12:46:50]request: POST /json_proto HTTP/1.0 [12:46:50]Method: POST [12:46:50]URL: /json_proto [12:46:50]Method is POST - this is cgi request [12:46:50]url: /json_proto [12:46:50]query_string will be loaded in cgi processing [12:46:50]execute_cgi json_proto POST (null) [12:46:50]execute_cgi path=json_proto method=POST [12:46:50]POST find Content-Length [12:46:50]Host: 172.17.42.196:8080 [12:46:50]Content-Length: 331 [12:46:50]Content-Type: application/json [12:46:50] [12:46:50]POST finish read [12:46:50]Found Content-Length = 331 [12:46: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" ] } } [12:46:50]execute_script... [12:46: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" ] } } [12:46:50]POST & json_proto [12:46:50]process_json_proto [12:46:50]json parsed OK: [12:46:50]protocol is kg_v1.0 [12:46:50]action value=get_value [12:46:50]process_action get_value [12:46:50]cmd_get_value [12:46:50]process_action get_value done [12:46:50]requested_data is exist [12:46:50]produce_requested_data [12:46:50]requested_item fm.sale.total is exist - process it [12:46:50]SAM_PROTO_GetFMData [12:46:50]wFMCommunicate request_size=4 [12:46:50]MH_SAM_APDU [12:46:50]CAPDU: 80 13 03 00 [12:46:50]Write to MH i2c: E2 08 00 B1 00 80 13 03 00 00 00 00 00 30 [12:46:50]Write i2c OK [12:46:50]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 B1 00 00 C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 1F [12:46:51]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 17 00 00 [12:46:51]Write to MH i2c: E2 08 00 B2 00 80 17 00 00 00 00 00 00 32 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 B2 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 50 [12:46:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 17 00 00 [12:46:51]Write to MH i2c: E2 08 00 B3 00 80 17 00 00 00 00 00 00 33 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 B3 00 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 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 90 00 E1 [12:46: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 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 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 17 00 00 [12:46:51]Write to MH i2c: E2 08 00 B4 00 80 17 00 00 00 00 00 00 34 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 B4 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [12:46:51]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 17 00 00 [12:46:51]Write to MH i2c: E2 08 00 B5 00 80 17 00 00 00 00 00 00 35 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 DF 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 DF 00 B5 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 15 [12:46:52]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:46:52]wFMCommunicate OK [12:46:52]SAM_PROTO_GetFMData done [12:46:52]requested_item fm.sale_refund.total is exist - process it [12:46:52]requested_item fm.buy.total is exist - process it [12:46:52]requested_item shift.sale.total is exist - process it [12:46:52]SAM_PROTO_GetShiftData [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 13 02 00 [12:46:52]Write to MH i2c: E2 08 00 B6 00 80 13 02 00 00 00 00 00 34 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 B6 00 00 AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [12:46:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 17 00 00 [12:46:52]Write to MH i2c: E2 08 00 B7 00 80 17 00 00 00 00 00 00 37 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 B7 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 59 [12:46:52]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 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 17 00 00 [12:46:52]Write to MH i2c: E2 08 00 B8 00 80 17 00 00 00 00 00 00 38 [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 FD 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 FD 00 B8 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [12:46:53]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 [12:46:53]wFMCommunicate OK [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 17 00 00 [12:46:53]Write to MH i2c: E2 08 00 B9 00 80 17 00 00 00 00 00 00 39 [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 FD 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 FD 00 B9 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 AB [12:46:53]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 [12:46:53]wFMCommunicate OK [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 17 00 00 [12:46:53]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 CB 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 CB 00 BA 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 23 [12:46:53]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 [12:46:53]wFMCommunicate OK [12:46:53]SAM_PROTO_GetShiftData done [12:46:53]requested_item shift.sale.total_cash is exist - process it [12:46:53]requested_item shift.sale_refund.total is exist - process it [12:46:53]requested_item shift.sale_refund.total_cash is exist - process it [12:46:53]requested_item shift.buy.total is exist - process it [12:46:53]requested_item shift.buy.total_cash is exist - process it [12:46:53]produce_requested_data done [12:46:53]produce_requested_data return {"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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} [12:46:53]process_action_free get_value [12:46:53]json_value_free [12:46:53]json_value_free done [12:46:53]process_json_proto returns [12:46:53]Send response to host [12:46:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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}}} [12:46:53]free response buf [12:46:53]execute_script done [12:46:53]execute_script returns [12:46:53]free content buf [12:46:53]Sock 9.Close socket [12:46:53]Sock 9.Thread stoped [12:46:53]accept exits with 8 [12:46:53]New connection [12:46:53]New thread 3066862948 created [12:46:53]Thread 3066719588 joined [12:46:53]Waiting for new connection... [12:46:53] Sock 8.Parse request [12:46:53]Sock 8.Check first char [12:46:53]Sock 8.First char is OK [12:46:53]request: POST /json_proto HTTP/1.0 [12:46:53]Method: POST [12:46:53]URL: /json_proto [12:46:53]Method is POST - this is cgi request [12:46:53]url: /json_proto [12:46:53]query_string will be loaded in cgi processing [12:46:53]execute_cgi json_proto POST (null) [12:46:53]execute_cgi path=json_proto method=POST [12:46:53]POST find Content-Length [12:46:53]Host: 172.17.42.196:8080 [12:46:53]Content-Length: 331 [12:46:53]Content-Type: application/json [12:46:53] [12:46:53]POST finish read [12:46:53]Found Content-Length = 331 [12:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:46:53]execute_script... [12:46:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:46:53]POST & json_proto [12:46:53]process_json_proto [12:46:53]json parsed OK: [12:46:53]protocol is kg_v1.0 [12:46:53]action value=get_value [12:46:53]process_action get_value [12:46:53]cmd_get_value [12:46:53]process_action get_value done [12:46:53]requested_data is exist [12:46:53]produce_requested_data [12:46:53]requested_item fm.sale.total is exist - process it [12:46:53]SAM_PROTO_GetFMData [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 13 03 00 [12:46:53]Write to MH i2c: E2 08 00 BB 00 80 13 03 00 00 00 00 00 3A [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:54]OFD Sender: No OFD packet to send [12:46:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 FD 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 FD 00 BB 00 00 C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 29 [12:46:54]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 17 00 00 [12:46:54]Write to MH i2c: E2 08 00 BC 00 80 17 00 00 00 00 00 00 3C [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 FD 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 FD 00 BC 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5A [12:46:54]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:46:54]wFMCommunicate OK [12:46:54]wFMCommunicate request_size=4 [12:46:54]MH_SAM_APDU [12:46:54]CAPDU: 80 17 00 00 [12:46:54]Write to MH i2c: E2 08 00 BD 00 80 17 00 00 00 00 00 00 3D [12:46:54]Write i2c OK [12:46:54]MH_I2C_Read... [12:46:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:54]Read from MH i2c: E2 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 FD 00 [12:46:54]MH_I2C_Read... [12:46:54]Read from MH i2c: E2 FD 00 BD 00 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 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 90 00 EB [12:46:54]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 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 90 00 [12:46:55]wFMCommunicate OK [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 17 00 00 [12:46:55]Write to MH i2c: E2 08 00 BE 00 80 17 00 00 00 00 00 00 3E [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 FD 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 FD 00 BE 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [12:46:55]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:46:55]wFMCommunicate OK [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 17 00 00 [12:46:55]Write to MH i2c: E2 08 00 BF 00 80 17 00 00 00 00 00 00 3F [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:46:55]Read from MH i2c: E2 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 DF 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: E2 DF 00 BF 00 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 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 1F [12:46:55]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:46:55]wFMCommunicate OK [12:46:55]SAM_PROTO_GetFMData done [12:46:55]requested_item fm.sale_refund.total is exist - process it [12:46:55]requested_item fm.buy.total is exist - process it [12:46:55]requested_item shift.sale.total is exist - process it [12:46:55]SAM_PROTO_GetShiftData [12:46:55]wFMCommunicate request_size=4 [12:46:55]MH_SAM_APDU [12:46:55]CAPDU: 80 13 02 00 [12:46:55]Write to MH i2c: E2 08 00 C0 00 80 13 02 00 00 00 00 00 3E [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 FD 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 FD 00 C0 00 00 AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [12:46:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:46:56]wFMCommunicate OK [12:46:56]wFMCommunicate request_size=4 [12:46:56]MH_SAM_APDU [12:46:56]CAPDU: 80 17 00 00 [12:46:56]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 FD 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 FD 00 C1 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 63 [12:46:56]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 [12:46:56]wFMCommunicate OK [12:46:56]wFMCommunicate request_size=4 [12:46:56]MH_SAM_APDU [12:46:56]CAPDU: 80 17 00 00 [12:46:56]Write to MH i2c: E2 08 00 C2 00 80 17 00 00 00 00 00 00 42 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:56]Read from MH i2c: E2 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 FD 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: E2 FD 00 C2 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [12:46:57]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 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 17 00 00 [12:46:57]Write to MH i2c: E2 08 00 C3 00 80 17 00 00 00 00 00 00 43 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 FD 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 FD 00 C3 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 B5 [12:46:57]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 [12:46:57]wFMCommunicate OK [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 17 00 00 [12:46:57]Write to MH i2c: E2 08 00 C4 00 80 17 00 00 00 00 00 00 44 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 CB 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 CB 00 C4 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 2D [12:46:57]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 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetShiftData done [12:46:57]requested_item shift.sale.total_cash is exist - process it [12:46:57]requested_item shift.sale_refund.total is exist - process it [12:46:57]requested_item shift.sale_refund.total_cash is exist - process it [12:46:57]requested_item shift.buy.total is exist - process it [12:46:57]requested_item shift.buy.total_cash is exist - process it [12:46:57]produce_requested_data done [12:46:57]produce_requested_data return {"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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} [12:46:57]process_action_free get_value [12:46:57]json_value_free [12:46:57]json_value_free done [12:46:57]process_json_proto returns [12:46:57]Send response to host [12:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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}}} [12:46:57]free response buf [12:46:57]execute_script done [12:46:57]execute_script returns [12:46:57]free content buf [12:46:57]Sock 8.Close socket [12:46:57]Sock 8.Thread stoped [12:46:57]accept exits with 9 [12:46:57]New connection [12:46:57]New thread 3066719588 created [12:46:57]Thread 3066862948 joined [12:46:57]Waiting for new connection... [12:46:57] Sock 9.Parse request [12:46:57]Sock 9.Check first char [12:46:57]Sock 9.First char is OK [12:46:57]request: POST /json_proto HTTP/1.0 [12:46:57]Method: POST [12:46:57]URL: /json_proto [12:46:57]Method is POST - this is cgi request [12:46:57]url: /json_proto [12:46:57]query_string will be loaded in cgi processing [12:46:57]execute_cgi json_proto POST (null) [12:46:57]execute_cgi path=json_proto method=POST [12:46:57]POST find Content-Length [12:46:57]Host: 172.17.42.196:8080 [12:46:57]Content-Length: 282 [12:46:57]Content-Type: application/json [12:46:57] [12:46:57]POST finish read [12:46:57]Found Content-Length = 282 [12:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:57]execute_script... [12:46:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:57]POST & json_proto [12:46:57]process_json_proto [12:46:57]json parsed OK: [12:46:57]protocol is kg_v1.0 [12:46:57]action value=x_report [12:46:57]process_action x_report [12:46:57]cmd_x_report [12:46:57]MH_GetDate [12:46:57]Write to MH i2c: F0 00 00 C5 00 B4 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 09 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 09 00 C5 00 00 42 36 1E 67 FF C4 6B 64 4C [12:46:57]GetLastDocTimeStamp 1730032666 [12:46:57]current date 1730033218 [12:46:57]FM_GetShiftState [12:46:57]SAM_PROTO_GetShiftState [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 13 01 00 [12:46:57]Write to MH i2c: E2 08 00 C6 00 80 13 01 00 00 00 00 00 43 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 0E 00 C6 00 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 DF [12:46:57]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetShiftState done [12:46:57]FM_GetShiftState done [12:46:57]KKMCreateXReportDocument [12:46:57]Load OK [12:46:57]Malloc new data [12:46:57]MH_GetDate [12:46:57]Write to MH i2c: F0 00 00 C7 00 B6 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 09 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: F0 09 00 C7 00 00 42 36 1E 67 FF C4 6B 64 4E [12:46:57]Malloc new data [12:46:57]Malloc new data [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 11 00 00 [12:46:57]Write to MH i2c: E2 08 00 C8 00 80 11 00 00 00 00 00 00 42 [12:46:57]Write i2c OK [12:46:57]MH_I2C_Read... [12:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:57]Read from MH i2c: E2 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 [12:46:57]MH_I2C_Read... [12:46:57]Read from MH i2c: E2 17 00 C8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 99 [12:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:46:57]wFMCommunicate OK [12:46:57]SAM_PROTO_GetFieldsCounters [12:46:57]wFMCommunicate request_size=4 [12:46:57]MH_SAM_APDU [12:46:57]CAPDU: 80 13 00 00 [12:46:57]Write to MH i2c: E2 08 00 C9 00 80 13 00 00 00 00 00 00 45 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 62 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 62 00 C9 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [12: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:58]wFMCommunicate OK [12:46:58]SAM_PROTO_GetFieldsCounters done [12:46:58]Malloc new data [12:46:58]Malloc new data [12:46:58]Malloc new data [12:46:58]KKMCreateXReportDocument OK [12:46:58]KKMSetXReportData OK [12:46:58]KKMPrepareXReportFMData [12:46:58]SAM_PROTO_GetShiftData [12:46:58]wFMCommunicate request_size=4 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 13 02 00 [12:46:58]Write to MH i2c: E2 08 00 CA 00 80 13 02 00 00 00 00 00 48 [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:46:58]Read from MH i2c: E2 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 FD 00 [12:46:58]MH_I2C_Read... [12:46:58]Read from MH i2c: E2 FD 00 CA 00 00 AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 89 [12:46:58]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:46:58]wFMCommunicate OK [12:46:58]wFMCommunicate request_size=4 [12:46:58]MH_SAM_APDU [12:46:58]CAPDU: 80 17 00 00 [12:46:58]Write to MH i2c: E2 08 00 CB 00 80 17 00 00 00 00 00 00 4B [12:46:58]Write i2c OK [12:46:58]MH_I2C_Read... [12:46:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 FD 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 FD 00 CB 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 6D [12:46:59]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 [12:46:59]wFMCommunicate OK [12:46:59]wFMCommunicate request_size=4 [12:46:59]MH_SAM_APDU [12:46:59]CAPDU: 80 17 00 00 [12:46:59]Write to MH i2c: E2 08 00 CC 00 80 17 00 00 00 00 00 00 4C [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]OFD Sender: No OFD packet to send [12:46:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 FD 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 FD 00 CC 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 [12:46:59]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 [12:46:59]wFMCommunicate OK [12:46:59]wFMCommunicate request_size=4 [12:46:59]MH_SAM_APDU [12:46:59]CAPDU: 80 17 00 00 [12:46:59]Write to MH i2c: E2 08 00 CD 00 80 17 00 00 00 00 00 00 4D [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 FD 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 FD 00 CD 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 BF [12:47: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 [12:47:00]wFMCommunicate OK [12:47:00]wFMCommunicate request_size=4 [12:47:00]MH_SAM_APDU [12:47:00]CAPDU: 80 17 00 00 [12:47:00]Write to MH i2c: E2 08 00 CE 00 80 17 00 00 00 00 00 00 4E [12:47:00]Write i2c OK [12:47:00]MH_I2C_Read... [12:47:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:47:00]Read from MH i2c: E2 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 CB 00 [12:47:00]MH_I2C_Read... [12:47:00]Read from MH i2c: E2 CB 00 CE 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 37 [12:47:00]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 [12:47:00]wFMCommunicate OK [12:47:00]SAM_PROTO_GetShiftData done [12:47:00]1194 (1194) - счетчики итогов смены [12:47:00] 1134 (4) - 88 - количество чеков со всеми признаками расчетов [12:47:00] 1129 (155) - счетчики операций «приход» [12:47:00] 1135 (4) - 88 - количество чеков по признаку расчетов [12:47:00] 1201 (3) - 32916.33 - общая итоговая сумма в чеках [12:47:00] 1136 (3) - 18434.00 - итоговая сумма в чеках наличными [12:47:00] 1138 (3) - 14482.33 - итоговая сумма в чеках безналичными [12:47:00] 1024 (122) - суммы налогов [12:47:00] 1006 (9) - суммы НДС [12:47:00] 1010 (1) - 0% - код ставки НДС [12:47:00] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:00] 1006 (12) - суммы НДС [12:47:00] 1010 (1) - 12% - код ставки НДС [12:47:00] 1011 (3) - 3495.76 - сумма НДС по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (11) - суммы НСП [12:47:00] 1014 (1) - 1% - код ставки НСП [12:47:00] 1015 (2) - 291.25 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 2% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 3% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 5% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 1,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1130 (141) - счетчики операций «возврат прихода» [12:47:00] 1135 (4) - 0 - количество чеков по признаку расчетов [12:47:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:47:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:47:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:47:00] 1024 (117) - суммы налогов [12:47:00] 1006 (9) - суммы НДС [12:47:00] 1010 (1) - 0% - код ставки НДС [12:47:00] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:00] 1006 (9) - суммы НДС [12:47:00] 1010 (1) - 12% - код ставки НДС [12:47:00] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 1% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 2% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 3% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 5% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 1,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1131 (141) - счетчики операций «расход» [12:47:00] 1135 (4) - 0 - количество чеков по признаку расчетов [12:47:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:47:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:47:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:47:00] 1024 (117) - суммы налогов [12:47:00] 1006 (9) - суммы НДС [12:47:00] 1010 (1) - 0% - код ставки НДС [12:47:00] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:00] 1006 (9) - суммы НДС [12:47:00] 1010 (1) - 12% - код ставки НДС [12:47:00] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 1% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 2% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 3% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 5% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 1,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1132 (141) - счетчики операций «возврат расхода» [12:47:00] 1135 (4) - 0 - количество чеков по признаку расчетов [12:47:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:47:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:47:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:47:00] 1024 (117) - суммы налогов [12:47:00] 1006 (9) - суммы НДС [12:47:00] 1010 (1) - 0% - код ставки НДС [12:47:00] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:00] 1006 (9) - суммы НДС [12:47:00] 1010 (1) - 12% - код ставки НДС [12:47:00] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 1% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 2% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 3% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 5% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 0,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1007 (9) - суммы НСП [12:47:00] 1014 (1) - 1,50% - код ставки НСП [12:47:00] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:00] 1133 (588) - - счетчики коррекции - не используются [12:47:00]SetTLVBufToDocument [12:47:00]Processing tag 1194 (04AA) [12:47:00]Load OK [12:47:00]SetTLVBufToDocument [12:47:00]Processing tag 1134 (046E) [12:47:00]Malloc new data [12:47:01]Processing tag 1129 (0469) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1135 (046F) [12:47:01]Malloc new data [12:47:01]Processing tag 1201 (04B1) [12:47:01]Malloc new data [12:47:01]Processing tag 1136 (0470) [12:47:01]Malloc new data [12:47:01]Processing tag 1138 (0472) [12:47:01]Malloc new data [12:47:01]Processing tag 1024 (0400) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1130 (046A) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1135 (046F) [12:47:01]Malloc new data [12:47:01]Processing tag 1201 (04B1) [12:47:01]Malloc new data [12:47:01]Processing tag 1136 (0470) [12:47:01]Malloc new data [12:47:01]Processing tag 1138 (0472) [12:47:01]Malloc new data [12:47:01]Processing tag 1024 (0400) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1131 (046B) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1135 (046F) [12:47:01]Malloc new data [12:47:01]Processing tag 1201 (04B1) [12:47:01]Malloc new data [12:47:01]Processing tag 1136 (0470) [12:47:01]Malloc new data [12:47:01]Processing tag 1138 (0472) [12:47:01]Malloc new data [12:47:01]Processing tag 1024 (0400) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1132 (046C) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1135 (046F) [12:47:01]Malloc new data [12:47:01]Processing tag 1201 (04B1) [12:47:01]Malloc new data [12:47:01]Processing tag 1136 (0470) [12:47:01]Malloc new data [12:47:01]Processing tag 1138 (0472) [12:47:01]Malloc new data [12:47:01]Processing tag 1024 (0400) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1006 (03EE) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1010 (03F2) [12:47:01]Malloc new data [12:47:01]Processing tag 1011 (03F3) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1007 (03EF) [12:47:01]Load OK [12:47:01]SetTLVBufToDocument [12:47:01]Processing tag 1014 (03F6) [12:47:01]Malloc new data [12:47:01]Processing tag 1015 (03F7) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Processing tag 1133 (046D) [12:47:01]Malloc new data [12:47:01]SetTLVBufToDocument err=0 [12:47:01]SetTLVBufToDocument err=0 [12:47:01]Malloc new data [12:47:01]SAM_PROTO_GetFMData [12:47:01]wFMCommunicate request_size=4 [12:47:01]MH_SAM_APDU [12:47:01]CAPDU: 80 13 03 00 [12:47:01]Write to MH i2c: E2 08 00 CF 00 80 13 03 00 00 00 00 00 4E [12:47:01]Write i2c OK [12:47:01]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:47:02]Read from MH i2c: E2 FD 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 FD 00 CF 00 00 C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 3D [12:47:02]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 [12:47:02]wFMCommunicate OK [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 17 00 00 [12:47:02]Write to MH i2c: E2 08 00 D0 00 80 17 00 00 00 00 00 00 50 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:02]Read from MH i2c: E2 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 FD 00 [12:47:02]MH_I2C_Read... [12:47:02]Read from MH i2c: E2 FD 00 D0 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [12:47:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:02]wFMCommunicate OK [12:47:02]wFMCommunicate request_size=4 [12:47:02]MH_SAM_APDU [12:47:02]CAPDU: 80 17 00 00 [12:47:02]Write to MH i2c: E2 08 00 D1 00 80 17 00 00 00 00 00 00 51 [12:47:02]Write i2c OK [12:47:02]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 FD 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 FD 00 D1 00 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 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 90 00 FF [12:47:03]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 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 90 00 [12:47:03]wFMCommunicate OK [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 17 00 00 [12:47:03]Write to MH i2c: E2 08 00 D2 00 80 17 00 00 00 00 00 00 52 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:03]Read from MH i2c: E2 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 FD 00 [12:47:03]MH_I2C_Read... [12:47:03]Read from MH i2c: E2 FD 00 D2 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CD [12:47:03]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:03]wFMCommunicate OK [12:47:03]wFMCommunicate request_size=4 [12:47:03]MH_SAM_APDU [12:47:03]CAPDU: 80 17 00 00 [12:47:03]Write to MH i2c: E2 08 00 D3 00 80 17 00 00 00 00 00 00 53 [12:47:03]Write i2c OK [12:47:03]MH_I2C_Read... [12:47:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:47:04]Read from MH i2c: E2 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 DF 00 [12:47:04]MH_I2C_Read... [12:47:04]Read from MH i2c: E2 DF 00 D3 00 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 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 33 [12:47:04]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:47:04]wFMCommunicate OK [12:47:04]SAM_PROTO_GetFMData done [12:47:04]FM_GetFMData:85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 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 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 OFD Sender: No OFD packet to send [12:47:04]EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:47:04]oper:6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:47:05]total:4C 61 08 6E [12:47:05]Malloc new data [12:47:05]oper:6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 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 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:47:05]total:74 FF D6 [12:47:05]Malloc new data [12:47:05]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 [12:47:05]total: [12:47:05]Malloc new data [12:47:05]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 [12:47:05]total: [12:47:05]Malloc new data [12:47:05]KKMPrepareXReportFMData err=0 [12:47:05]Х отчет ИНН: 02508201610067 Кассир: Сабыржан уулу Б. 27.10.2024 12:46 Смена: 522 РНМ: 0000000000091622 ЗНМ: 0300000084 СНО: Общий режим Всего чеков: 88 ИТОГИ ПРИХОД Чеков: 88 Общий итог: 32916.33 Итого наличными: 18434.00 Итого безнал.: 14482.33 НДС 0% : 0.00 НДС 12% : 3495.76 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 291.25 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 18434.00 НС Приход: 18460429.56 НС Возвр.Прихода: 140901.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874674 [12:47:05]StoreToDocumentArchive [12:47:05]MH_GetDate [12:47:05]Write to MH i2c: F0 00 00 D4 00 C3 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: F0 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: F0 09 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: F0 09 00 D4 00 00 4A 36 1E 67 FF C4 6B 64 63 [12:47:05]shift 522 fd 1730033226 [12:47:05]Create dir for shift 0522 [12:47:05]save to /storage/0522/doc_1730033226 [12:47:05]save last doc name /storage/0522/doc_1730033226 to /storage/kkm_last_doc_name [12:47:05]save OK [12:47:05]Clear old archive folders... [12:47:05]NVStorageSaveData kkm_last_timestamp [12:47:05]File name is /storage/kkm_last_timestamp [12:47:05]Write 4 bytes [12:47:05]NVStorageSaveData done [12:47:05]ExternCall_PrintAddStr [12:47:05]wPrintStart [12:47:05]Write to MH i2c: 01 00 00 D5 00 D5 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 D5 00 00 00 00 00 00 FF 0F EA [12:47:05]RasterBufferAndPrint [12:47:05]line Х отчет [12:47:05]line ИНН: 02508201610067 [12:47:05]line Кассир: Сабыржан уулу Б. [12:47:05]line 27.10.2024 12:46 [12:47:05]line Смена: 522 [12:47:05]line РНМ: 0000000000091622 [12:47:05]line ЗНМ: 0300000084 [12:47:05]line СНО: Общий режим [12:47:05]line Всего чеков: 88 [12:47:05]line ИТОГИ ПРИХОД [12:47:05]line Чеков: 88 [12:47:05]line Общий итог: 32916.33 [12:47:05]line Итого наличными: 18434.00 [12:47:05]line Итого безнал.: 14482.33 [12:47:05]line НДС 0% : 0.00 [12:47:05]line НДС 12% : 3495.76 [12:47:05]line НСП 0% : 0.00 [12:47:05]line НСП 1,50% : 0.00 [12:47:05]line НСП 0,50% : 0.00 [12:47:05]line НСП 5% : 0.00 [12:47:05]line НСП 3% : 0.00 [12:47:05]line НСП 2% : 0.00 [12:47:05]line НСП 1% : 291.25 [12:47:05]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:47:05]line Чеков: 0 [12:47:05]line Общий итог: 0.00 [12:47:05]line Итого наличными: 0.00 [12:47:05]line Итого безнал.: 0.00 [12:47:05]line НДС 0% : 0.00 [12:47:05]line НДС 12% : 0.00 [12:47:05]line НСП 0% : 0.00 [12:47:05]line НСП 1,50% : 0.00 [12:47:05]line НСП 0,50% : 0.00 [12:47:05]line НСП 5% : 0.00 [12:47:05]line НСП 3% : 0.00 [12:47:05]line НСП 2% : 0.00 [12:47:05]line НСП 1% : 0.00 [12:47:05]line ИТОГИ РАСХОД [12:47:05]line Чеков: 0 [12:47:05]line Общий итог: 0.00 [12:47:05]line Итого наличными: 0.00 [12:47:05]line Итого безнал.: 0.00 [12:47:05]line НДС 0% : 0.00 [12:47:05]line НДС 12% : 0.00 [12:47:05]line НСП 0% : 0.00 [12:47:05]line НСП 1,50% : 0.00 [12:47:05]line НСП 0,50% : 0.00 [12:47:05]line НСП 5% : 0.00 [12:47:05]line НСП 3% : 0.00 [12:47:05]line НСП 2% : 0.00 [12:47:05]line НСП 1% : 0.00 [12:47:05]line ИТОГИ ВОЗВРАТ РАСХОДА [12:47:05]line Чеков: 0 [12:47:05]line Общий итог: 0.00 [12:47:05]line Итого наличными: 0.00 [12:47:05]line Итого безнал.: 0.00 [12:47:05]line НДС 0% : 0.00 [12:47:05]line НДС 12% : 0.00 [12:47:05]line НСП 0% : 0.00 [12:47:05]line НСП 1,50% : 0.00 [12:47:05]line НСП 0,50% : 0.00 [12:47:05]line НСП 5% : 0.00 [12:47:05]line НСП 3% : 0.00 [12:47:05]line НСП 2% : 0.00 [12:47:05]line НСП 1% : 0.00 [12:47:05]line Сумма внесений: 0.00 [12:47:05]line Сумма выплат: 0.00 [12:47:05]line Нал. в кассе: 18434.00 [12:47:05]line НС Приход: 18460429.56 [12:47:05]line НС Возвр.Прихода: 140901.00 [12:47:05]line НС Расход: 0.00 [12:47:05]line НС Возвр.Расхода: 0.00 [12:47:05]line ФМ: 0000000000874674 [12:47:05]written 0, free lines is 4095 [12:47:06]Write to MH i2c: 01 00 00 20 01 21 [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: 01 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: 01 07 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: 01 07 00 20 01 00 00 00 00 00 A1 0A D3 [12:47:06]RasterBufferAndPrint [12:47:06]line [12:47:06]line [12:47:06]line [12:47:06]line [12:47:06]line [12:47:06]written 0, free lines is 2751 [12:47:06]MH_Cut [12:47:06]Write to MH i2c: D1 01 00 27 01 01 FA [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: D1 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: D1 01 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: D1 01 00 27 01 00 F9 [12:47:06]Write to MH i2c: 01 00 00 28 01 29 [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:07]*** Cut start [12:47:07]*** Partial cut [12:47:07]*** CUTSNS_PIN = 1 [12:47:07]*** CUTSNS_PIN = 0 [12:47:07]*** Brake cut motor [12:47:07]Read from MH i2c: 01 [12:47:07]MH_I2C_Read... [12:47:07]*** Stop cut motor [12:47:07]*** Cut end [12:47:07]Read from MH i2c: 01 07 00 [12:47:07]MH_I2C_Read... [12:47:07]Read from MH i2c: 01 07 00 28 01 00 00 00 00 00 FF 0F 3E [12:47:07]process_action x_report done [12:47:07]requested_data is exist [12:47:07]produce_requested_data [12:47:07]requested_item fd.num is exist - process it [12:47:07]SAM_PROTO_GetFieldsCounters [12:47:07]wFMCommunicate request_size=4 [12:47:07]MH_SAM_APDU [12:47:07]CAPDU: 80 13 00 00 [12:47:07]Write to MH i2c: E2 08 00 29 01 80 13 00 00 00 00 00 00 A6 [12:47:07]Write i2c OK [12:47:07]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 62 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 62 00 29 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [12: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:08]wFMCommunicate OK [12:47:08]SAM_PROTO_GetFieldsCounters done [12:47:08]requested_item shift.num is exist - process it [12:47:08]requested_item shift.opened is exist - process it [12:47:08]req_shift_opened [12:47:08]FM_GetShiftState [12:47:08]SAM_PROTO_GetShiftState [12:47:08]wFMCommunicate request_size=4 [12:47:08]MH_SAM_APDU [12:47:08]CAPDU: 80 13 01 00 [12:47:08]Write to MH i2c: E2 08 00 2A 01 80 13 01 00 00 00 00 00 A8 [12:47:08]Write i2c OK [12:47:08]MH_I2C_Read... [12:47:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:08]Read from MH i2c: E2 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0E 00 [12:47:08]MH_I2C_Read... [12:47:08]Read from MH i2c: E2 0E 00 2A 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 44 [12:47:08]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:47:08]wFMCommunicate OK [12:47:08]SAM_PROTO_GetShiftState done [12:47:08]FM_GetShiftState done [12:47:08]req_shift_opened done [12:47:08]requested_item shift.open_date is exist - process it [12:47:08]req_shift_open_date [12:47:08]req_shift_open_date done [12:47:08]produce_requested_data done [12:47:08]produce_requested_data return {"fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:47:08]process_action_free x_report [12:47:08]json_value_free [12:47:08]json_value_free done [12:47:08]process_json_proto returns [12:47:08]Send response to host [12:47:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:47:08]free response buf [12:47:08]execute_script done [12:47:08]execute_script returns [12:47:08]free content buf [12:47:08]Sock 9.Close socket [12:47:08]Sock 9.Thread stoped [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:47]accept exits with 8 [12:47:47]New connection [12:47:47]New thread 3066862948 created [12:47:47]Thread 3066719588 joined [12:47:47]Waiting for new connection... [12:47:47] Sock 8.Parse request [12:47:47]Sock 8.Check first char [12:47:47]Sock 8.First char is OK [12:47:47]request: POST /json_proto HTTP/1.0 [12:47:47]Method: POST [12:47:47]URL: /json_proto [12:47:47]Method is POST - this is cgi request [12:47:47]url: /json_proto [12:47:47]query_string will be loaded in cgi processing [12:47:47]execute_cgi json_proto POST (null) [12:47:47]execute_cgi path=json_proto method=POST [12:47:47]POST find Content-Length [12:47:47]Host: 172.17.42.196:8080 [12:47:47]Content-Length: 215 [12:47:47]Content-Type: application/json [12:47:47] [12:47:47]POST finish read [12:47:47]Found Content-Length = 215 [12:47:47]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" ] } } [12:47:47]execute_script... [12:47:47]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" ] } } [12:47:47]POST & json_proto [12:47:47]process_json_proto [12:47:47]json parsed OK: [12:47:47]protocol is kg_v1.0 [12:47:47]action value=get_value [12:47:47]process_action get_value [12:47:47]cmd_get_value [12:47:47]process_action get_value done [12:47:47]requested_data is exist [12:47:47]produce_requested_data [12:47:47]requested_item kkm.sn is exist - process it [12:47:47]requested_item kkm.ver is exist - process it [12:47:47]requested_item fm.sn is exist - process it [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 11 00 00 [12:47:47]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 17 00 [12:47:47]MH_I2C_Read... [12:47:47]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 36 37 34 90 00 FD [12:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:47:47]wFMCommunicate OK [12:47:47]requested_item fd.num is exist - process it [12:47:47]SAM_PROTO_GetFieldsCounters [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 13 00 00 [12:47:47]Write to MH i2c: E2 08 00 2C 01 80 13 00 00 00 00 00 00 A9 [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:47]Read from MH i2c: E2 [12:47:47]MH_I2C_Read... [12:47:47]Read from MH i2c: E2 62 00 [12:47:47]MH_I2C_Read... [12:47:47]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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:47: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8C EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:47]wFMCommunicate OK [12:47:47]SAM_PROTO_GetFieldsCounters done [12:47:47]requested_item shift.num is exist - process it [12:47:47]requested_item shift.opened is exist - process it [12:47:47]req_shift_opened [12:47:47]FM_GetShiftState [12:47:47]SAM_PROTO_GetShiftState [12:47:47]wFMCommunicate request_size=4 [12:47:47]MH_SAM_APDU [12:47:47]CAPDU: 80 13 01 00 [12:47:47]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [12:47:47]Write i2c OK [12:47:47]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 0E 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 0E 00 2D 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 47 [12:47:48]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:47:48]wFMCommunicate OK [12:47:48]SAM_PROTO_GetShiftState done [12:47:48]FM_GetShiftState done [12:47:48]req_shift_opened done [12:47:48]requested_item shift.open_date is exist - process it [12:47:48]req_shift_open_date [12:47:48]req_shift_open_date done [12:47:48]produce_requested_data done [12:47:48]produce_requested_data return {"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505} [12:47:48]process_action_free get_value [12:47:48]json_value_free [12:47:48]json_value_free done [12:47:48]process_json_proto returns [12:47:48]Send response to host [12:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000084","kkm.ver":"001","fm.sn":"0000000000874674","fd.num":60556,"shift.num":532,"shift.opened":1,"shift.open_date":1729989505}}} [12:47:48]free response buf [12:47:48]execute_script done [12:47:48]execute_script returns [12:47:48]free content buf [12:47:48]Sock 8.Close socket [12:47:48]Sock 8.Thread stoped [12:47:48]accept exits with 9 [12:47:48]New connection [12:47:48]New thread 3066719588 created [12:47:48]Thread 3066862948 joined [12:47:48]Waiting for new connection... [12:47:48] Sock 9.Parse request [12:47:48]Sock 9.Check first char [12:47:48]Sock 9.First char is OK [12:47:48]request: POST /json_proto HTTP/1.0 [12:47:48]Method: POST [12:47:48]URL: /json_proto [12:47:48]Method is POST - this is cgi request [12:47:48]url: /json_proto [12:47:48]query_string will be loaded in cgi processing [12:47:48]execute_cgi json_proto POST (null) [12:47:48]execute_cgi path=json_proto method=POST [12:47:48]POST find Content-Length [12:47:48]Host: 172.17.42.196:8080 [12:47:48]Content-Length: 331 [12:47:48]Content-Type: application/json [12:47:48] [12:47:48]POST finish read [12:47:48]Found Content-Length = 331 [12:47:48]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" ] } } [12:47:48]execute_script... [12:47:48]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" ] } } [12:47:48]POST & json_proto [12:47:48]process_json_proto [12:47:48]json parsed OK: [12:47:48]protocol is kg_v1.0 [12:47:48]action value=get_value [12:47:48]process_action get_value [12:47:48]cmd_get_value [12:47:48]process_action get_value done [12:47:48]requested_data is exist [12:47:48]produce_requested_data [12:47:48]requested_item fm.sale.total is exist - process it [12:47:48]SAM_PROTO_GetFMData [12:47:48]wFMCommunicate request_size=4 [12:47:48]MH_SAM_APDU [12:47:48]CAPDU: 80 13 03 00 [12:47:48]Write to MH i2c: E2 08 00 2E 01 80 13 03 00 00 00 00 00 AE [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:47:48]Read from MH i2c: E2 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 FD 00 [12:47:48]MH_I2C_Read... [12:47:48]Read from MH i2c: E2 FD 00 2E 01 00 C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 9D [12:47:48]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 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 17 00 00 [12:47:48]Write to MH i2c: E2 08 00 2F 01 80 17 00 00 00 00 00 00 B0 [12:47:48]Write i2c OK [12:47:48]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 2F 01 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [12:47:49]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 17 00 00 [12:47:49]Write to MH i2c: E2 08 00 30 01 80 17 00 00 00 00 00 00 B1 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 30 01 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 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 90 00 5F [12:47:49]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 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 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 17 00 00 [12:47:49]Write to MH i2c: E2 08 00 31 01 80 17 00 00 00 00 00 00 B2 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 FD 00 [12:47:49]MH_I2C_Read... [12:47:49]OFD Sender: No OFD packet to send [12:47:49]Read from MH i2c: E2 FD 00 31 01 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2D [12:47:49]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:49]wFMCommunicate OK [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 17 00 00 [12:47:49]Write to MH i2c: E2 08 00 32 01 80 17 00 00 00 00 00 00 B3 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:47:49]Read from MH i2c: E2 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 DF 00 [12:47:49]MH_I2C_Read... [12:47:49]Read from MH i2c: E2 DF 00 32 01 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 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 93 [12:47:49]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:47:49]wFMCommunicate OK [12:47:49]SAM_PROTO_GetFMData done [12:47:49]requested_item fm.sale_refund.total is exist - process it [12:47:49]requested_item fm.buy.total is exist - process it [12:47:49]requested_item shift.sale.total is exist - process it [12:47:49]SAM_PROTO_GetShiftData [12:47:49]wFMCommunicate request_size=4 [12:47:49]MH_SAM_APDU [12:47:49]CAPDU: 80 13 02 00 [12:47:49]Write to MH i2c: E2 08 00 33 01 80 13 02 00 00 00 00 00 B2 [12:47:49]Write i2c OK [12:47:49]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 33 01 00 AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F3 [12:47:50]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:47:50]wFMCommunicate OK [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 17 00 00 [12:47:50]Write to MH i2c: E2 08 00 34 01 80 17 00 00 00 00 00 00 B5 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 34 01 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 D7 [12:47:50]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 [12:47:50]wFMCommunicate OK [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 17 00 00 [12:47:50]Write to MH i2c: E2 08 00 35 01 80 17 00 00 00 00 00 00 B6 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:50]Read from MH i2c: E2 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 [12:47:50]MH_I2C_Read... [12:47:50]Read from MH i2c: E2 FD 00 35 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6D [12:47:50]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 [12:47:50]wFMCommunicate OK [12:47:50]wFMCommunicate request_size=4 [12:47:50]MH_SAM_APDU [12:47:50]CAPDU: 80 17 00 00 [12:47:50]Write to MH i2c: E2 08 00 36 01 80 17 00 00 00 00 00 00 B7 [12:47:50]Write i2c OK [12:47:50]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 FD 00 36 01 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 29 [12:47:51]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 [12:47:51]wFMCommunicate OK [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 17 00 00 [12:47:51]Write to MH i2c: E2 08 00 37 01 80 17 00 00 00 00 00 00 B8 [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:47:51]Read from MH i2c: E2 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 CB 00 [12:47:51]MH_I2C_Read... [12:47:51]Read from MH i2c: E2 CB 00 37 01 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 A1 [12:47:51]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 [12:47:51]wFMCommunicate OK [12:47:51]SAM_PROTO_GetShiftData done [12:47:51]requested_item shift.sale.total_cash is exist - process it [12:47:51]requested_item shift.sale_refund.total is exist - process it [12:47:51]requested_item shift.sale_refund.total_cash is exist - process it [12:47:51]requested_item shift.buy.total is exist - process it [12:47:51]requested_item shift.buy.total_cash is exist - process it [12:47:51]produce_requested_data done [12:47:51]produce_requested_data return {"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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} [12:47:51]process_action_free get_value [12:47:51]json_value_free [12:47:51]json_value_free done [12:47:51]process_json_proto returns [12:47:51]Send response to host [12:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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}}} [12:47:51]free response buf [12:47:51]execute_script done [12:47:51]execute_script returns [12:47:51]free content buf [12:47:51]Sock 9.Close socket [12:47:51]Sock 9.Thread stoped [12:47:51]accept exits with 8 [12:47:51]New connection [12:47:51]New thread 3066862948 created [12:47:51]Thread 3066719588 joined [12:47:51]Waiting for new connection... [12:47:51] Sock 8.Parse request [12:47:51]Sock 8.Check first char [12:47:51]Sock 8.First char is OK [12:47:51]request: POST /json_proto HTTP/1.0 [12:47:51]Method: POST [12:47:51]URL: /json_proto [12:47:51]Method is POST - this is cgi request [12:47:51]url: /json_proto [12:47:51]query_string will be loaded in cgi processing [12:47:51]execute_cgi json_proto POST (null) [12:47:51]execute_cgi path=json_proto method=POST [12:47:51]POST find Content-Length [12:47:51]Host: 172.17.42.196:8080 [12:47:51]Content-Length: 331 [12:47:51]Content-Type: application/json [12:47:51] [12:47:51]POST finish read [12:47:51]Found Content-Length = 331 [12:47:51]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" ] } } [12:47:51]execute_script... [12:47:51]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" ] } } [12:47:51]POST & json_proto [12:47:51]process_json_proto [12:47:51]json parsed OK: [12:47:51]protocol is kg_v1.0 [12:47:51]action value=get_value [12:47:51]process_action get_value [12:47:51]cmd_get_value [12:47:51]process_action get_value done [12:47:51]requested_data is exist [12:47:51]produce_requested_data [12:47:51]requested_item fm.sale.total is exist - process it [12:47:51]SAM_PROTO_GetFMData [12:47:51]wFMCommunicate request_size=4 [12:47:51]MH_SAM_APDU [12:47:51]CAPDU: 80 13 03 00 [12:47:51]Write to MH i2c: E2 08 00 38 01 80 13 03 00 00 00 00 00 B8 [12:47:51]Write i2c OK [12:47:51]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 FD 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 FD 00 38 01 00 C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 A7 [12:47:52]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 [12:47:52]wFMCommunicate OK [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 17 00 00 [12:47:52]Write to MH i2c: E2 08 00 39 01 80 17 00 00 00 00 00 00 BA [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 FD 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 FD 00 39 01 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [12:47:52]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:52]wFMCommunicate OK [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 17 00 00 [12:47:52]Write to MH i2c: E2 08 00 3A 01 80 17 00 00 00 00 00 00 BB [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 FD 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 FD 00 3A 01 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 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 90 00 69 [12:47:52]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 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 90 00 [12:47:52]wFMCommunicate OK [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 17 00 00 [12:47:52]Write to MH i2c: E2 08 00 3B 01 80 17 00 00 00 00 00 00 BC [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:53]Read from MH i2c: E2 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 FD 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 FD 00 3B 01 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [12:47:53]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:53]wFMCommunicate OK [12:47:53]wFMCommunicate request_size=4 [12:47:53]MH_SAM_APDU [12:47:53]CAPDU: 80 17 00 00 [12:47:53]Write to MH i2c: E2 08 00 3C 01 80 17 00 00 00 00 00 00 BD [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:47:53]Read from MH i2c: E2 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 DF 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 DF 00 3C 01 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 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 9D [12:47: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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:47:53]wFMCommunicate OK [12:47:53]SAM_PROTO_GetFMData done [12:47:53]requested_item fm.sale_refund.total is exist - process it [12:47:53]requested_item fm.buy.total is exist - process it [12:47:53]requested_item shift.sale.total is exist - process it [12:47:53]SAM_PROTO_GetShiftData [12:47:53]wFMCommunicate request_size=4 [12:47:53]MH_SAM_APDU [12:47:53]CAPDU: 80 13 02 00 [12:47:53]Write to MH i2c: E2 08 00 3D 01 80 13 02 00 00 00 00 00 BC [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 FD 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 FD 00 3D 01 00 AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [12:47:54]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:47:54]wFMCommunicate OK [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 17 00 00 [12:47:54]Write to MH i2c: E2 08 00 3E 01 80 17 00 00 00 00 00 00 BF [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 FD 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 FD 00 3E 01 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 E1 [12:47:54]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 [12:47:54]wFMCommunicate OK [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 17 00 00 [12:47:54]Write to MH i2c: E2 08 00 3F 01 80 17 00 00 00 00 00 00 C0 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]OFD Sender: No OFD packet to send [12:47:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 FD 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 FD 00 3F 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [12:47:54]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 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 17 00 00 [12:47:55]Write to MH i2c: E2 08 00 40 01 80 17 00 00 00 00 00 00 C1 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 FD 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 FD 00 40 01 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 33 [12:47:55]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 [12:47:55]wFMCommunicate OK [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 17 00 00 [12:47:55]Write to MH i2c: E2 08 00 41 01 80 17 00 00 00 00 00 00 C2 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 CB 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 CB 00 41 01 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 AB [12:47:55]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 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_GetShiftData done [12:47:55]requested_item shift.sale.total_cash is exist - process it [12:47:55]requested_item shift.sale_refund.total is exist - process it [12:47:55]requested_item shift.sale_refund.total_cash is exist - process it [12:47:55]requested_item shift.buy.total is exist - process it [12:47:55]requested_item shift.buy.total_cash is exist - process it [12:47:55]produce_requested_data done [12:47:55]produce_requested_data return {"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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} [12:47:55]process_action_free get_value [12:47:55]json_value_free [12:47:55]json_value_free done [12:47:55]process_json_proto returns [12:47:55]Send response to host [12:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":18460429.56,"fm.sale_refund.total":140901.00,"fm.buy.total":0.00,"shift.sale.total":32916.33,"shift.sale.total_cash":18434.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}}} [12:47:55]free response buf [12:47:55]execute_script done [12:47:55]execute_script returns [12:47:55]free content buf [12:47:55]Sock 8.Close socket [12:47:55]Sock 8.Thread stoped [12:47:55]accept exits with 9 [12:47:55]New connection [12:47:55]New thread 3066719588 created [12:47:55]Thread 3066862948 joined [12:47:55]Waiting for new connection... [12:47:55] Sock 9.Parse request [12:47:55]Sock 9.Check first char [12:47:55]Sock 9.First char is OK [12:47:55]request: POST /json_proto HTTP/1.0 [12:47:55]Method: POST [12:47:55]URL: /json_proto [12:47:55]Method is POST - this is cgi request [12:47:55]url: /json_proto [12:47:55]query_string will be loaded in cgi processing [12:47:55]execute_cgi json_proto POST (null) [12:47:55]execute_cgi path=json_proto method=POST [12:47:55]POST find Content-Length [12:47:55]Host: 172.17.42.196:8080 [12:47:55]Content-Length: 285 [12:47:55]Content-Type: application/json [12:47:55] [12:47:55]POST finish read [12:47:55]Found Content-Length = 285 [12:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:55]execute_script... [12:47:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0430\u0431\u044B\u0440\u0436\u0430\u043D \u0443\u0443\u043B\u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:55]POST & json_proto [12:47:55]process_json_proto [12:47:55]json parsed OK: [12:47:55]protocol is kg_v1.0 [12:47:55]action value=close_shift [12:47:55]process_action close_shift [12:47:55]cmd_close_shift [12:47:55]MH_GetDate [12:47:55]Write to MH i2c: F0 00 00 42 01 32 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 42 01 00 7C 36 1E 67 FF C4 6B 64 04 [12:47:55]GetLastDocTimeStamp 1730033218 [12:47:55]current date 1730033276 [12:47:55]FM_GetShiftState [12:47:55]SAM_PROTO_GetShiftState [12:47:55]wFMCommunicate request_size=4 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 13 01 00 [12:47:55]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:55]Read from MH i2c: E2 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0E 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 81 8B 1D 67 00 00 00 00 90 00 5D [12:47:55]RAPDU: 09 00 01 81 8B 1D 67 00 00 00 00 90 00 [12:47:55]wFMCommunicate OK [12:47:55]SAM_PROTO_GetShiftState done [12:47:55]FM_GetShiftState done [12:47:55]KKMCreateCloseShiftDocument [12:47:55]Load OK [12:47:55]Malloc new data [12:47:55]MH_GetDate [12:47:55]Write to MH i2c: F0 00 00 44 01 34 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: F0 09 00 44 01 00 7C 36 1E 67 FF C4 6B 64 06 [12:47:55]Malloc new data [12:47:55]Malloc new data [12:47:55]Malloc new data [12:47:55]Malloc new data [12:47:55]KKMCreateCloseShiftDocument OK [12:47:55]KKMSetCloseShiftData OK [12:47:55]ProcessDocumentItem done err = 0, tmpTLVsize=80 [12:47:55]tlvbuf is 0109CE90 [12:47:55]KKMLoadAndSignCloseShiftData [12:47:55]SAM_PROTO_ProcessDocument [12:47:55]wFMCommunicate request_size=9 [12:47:55]MH_SAM_APDU [12:47:55]CAPDU: 80 15 01 00 04 05 00 50 00 [12:47:55]Write to MH i2c: E2 0C 00 45 01 80 15 01 00 04 00 05 00 50 00 00 00 22 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=23 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [12:47:56]Write to MH i2c: E2 1A 00 46 01 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 BC [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=39 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 [12:47:56]Write to MH i2c: E2 2A 00 47 01 80 15 02 00 22 00 FD 03 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 00 00 52 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=13 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 15 02 00 08 F4 03 04 00 7C 36 1E 67 [12:47:56]Write to MH i2c: E2 10 00 48 01 80 15 02 00 08 00 F4 03 04 00 7C 36 1E 67 00 00 0B [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=25 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 [12:47:56]Write to MH i2c: E2 1C 00 49 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 00 00 27 [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [12:47:56]RAPDU: 90 00 [12:47:56]wFMCommunicate OK [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 15 03 00 [12:47:56]Write to MH i2c: E2 08 00 4A 01 80 15 03 00 00 00 00 00 CC [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 FD 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 FD 00 4A 01 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8D EC 00 00 0E 04 04 00 14 02 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F1 [12:47:56]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 10 04 04 00 8D EC 00 00 0E 04 04 00 14 02 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 AA 04 AA 04 6E 04 04 00 58 00 00 00 69 04 9B 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 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 88 55 05 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 C5 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_ProcessDocument answer len = 1265 [12:47:57]SAM_PROTO_ProcessDocument remain to read = 1017 [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 17 00 00 [12:47:57]Write to MH i2c: E2 08 00 4B 01 80 17 00 00 00 00 00 00 CC [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 FD 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 FD 00 4B 01 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [12:47:57]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:47:57]SAM_PROTO_ProcessDocument remain to read = 767 [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 17 00 00 [12:47:57]Write to MH i2c: E2 08 00 4C 01 80 17 00 00 00 00 00 00 CD [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 FD 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 FD 00 4C 01 00 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 90 00 2F [12:47:57]RAPDU: 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 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:47:57]SAM_PROTO_ProcessDocument remain to read = 517 [12:47:57]wFMCommunicate request_size=4 [12:47:57]MH_SAM_APDU [12:47:57]CAPDU: 80 17 00 00 [12:47:57]Write to MH i2c: E2 08 00 4D 01 80 17 00 00 00 00 00 00 CE [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 FD 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 FD 00 4D 01 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 58 [12:47:58]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:47:58]wFMCommunicate OK [12:47:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:47:58]SAM_PROTO_ProcessDocument remain to read = 267 [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 17 00 00 [12:47:58]Write to MH i2c: E2 08 00 4E 01 80 17 00 00 00 00 00 00 CF [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 FD 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 FD 00 4E 01 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 97 [12:47:58]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [12:47:58]wFMCommunicate OK [12:47:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [12:47:58]SAM_PROTO_ProcessDocument remain to read = 17 [12:47:58]wFMCommunicate request_size=4 [12:47:58]MH_SAM_APDU [12:47:58]CAPDU: 80 17 00 00 [12:47:58]Write to MH i2c: E2 08 00 4F 01 80 17 00 00 00 00 00 00 D0 [12:47:58]Write i2c OK [12:47:58]MH_I2C_Read... [12:47:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [12:47:58]Read from MH i2c: E2 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 14 00 [12:47:58]MH_I2C_Read... [12:47:58]Read from MH i2c: E2 14 00 4F 01 00 01 00 06 F7 03 00 00 35 04 06 00 76 3A 31 71 38 1D 90 00 BC [12:47:58]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 76 3A 31 71 38 1D 90 00 [12:47:58]wFMCommunicate OK [12:47:58]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [12:47:58]SAM_PROTO_ProcessDocument done [12:47:58]1209 (1) - 1.0 - номер версии ФФД [12:47:58]1041 (16) - 0000000000874674 - номер ФМ [12:47:58]1040 (4) - 60557 - номер ФД [12:47:58]1038 (4) - 532 - номер смены [12:47:58]1118 (4) - 88 - количество кассовых чеков за смену [12:47:58]1111 (4) - 90 - общее количество ФД за смену [12:47:58]1194 (1194) - счетчики итогов смены [12:47:58] 1134 (4) - 88 - количество чеков со всеми признаками расчетов [12:47:58] 1129 (155) - счетчики операций «приход» [12:47:58] 1135 (4) - 88 - количество чеков по признаку расчетов [12:47:58] 1201 (3) - 32916.33 - общая итоговая сумма в чеках [12:47:58] 1136 (3) - 18434.00 - итоговая сумма в чеках наличными [12:47:58] 1138 (3) - 14482.33 - итоговая сумма в чеках безналичными [12:47:58] 1024 (122) - суммы налогов [12:47:58] 1006 (9) - суммы НДС [12:47:59] 1010 (1) - 0% - код ставки НДС [12:47:59] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:59] 1006 (12) - суммы НДС [12:47:59] 1010 (1) - 12% - код ставки НДС [12:47:59] 1011 (3) - 3495.76 - сумма НДС по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (11) - суммы НСП [12:47:59] 1014 (1) - 1% - код ставки НСП [12:47:59] 1015 (2) - 291.25 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 2% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 3% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 5% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 1,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1130 (141) - счетчики операций «возврат прихода» [12:47:59] 1135 (4) - 0 - количество чеков по признаку расчетов [12:47:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:47:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:47:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:47:59] 1024 (117) - суммы налогов [12:47:59] 1006 (9) - суммы НДС [12:47:59] 1010 (1) - 0% - код ставки НДС [12:47:59] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:59] 1006 (9) - суммы НДС [12:47:59] 1010 (1) - 12% - код ставки НДС [12:47:59] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 1% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 2% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 3% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 5% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 1,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1131 (141) - счетчики операций «расход» [12:47:59] 1135 (4) - 0 - количество чеков по признаку расчетов [12:47:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:47:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:47:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:47:59] 1024 (117) - суммы налогов [12:47:59] 1006 (9) - суммы НДС [12:47:59] 1010 (1) - 0% - код ставки НДС [12:47:59] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:59] 1006 (9) - суммы НДС [12:47:59] 1010 (1) - 12% - код ставки НДС [12:47:59] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 1% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 2% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 3% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 5% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 1,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1132 (141) - счетчики операций «возврат расхода» [12:47:59] 1135 (4) - 0 - количество чеков по признаку расчетов [12:47:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:47:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:47:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:47:59] 1024 (117) - суммы налогов [12:47:59] 1006 (9) - суммы НДС [12:47:59] 1010 (1) - 0% - код ставки НДС [12:47:59] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:59] 1006 (9) - суммы НДС [12:47:59] 1010 (1) - 12% - код ставки НДС [12:47:59] 1011 (0) - 0.00 - сумма НДС по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 1% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 2% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 3% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 5% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 0,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1007 (9) - суммы НСП [12:47:59] 1014 (1) - 1,50% - код ставки НСП [12:47:59] 1015 (0) - 0.00 - сумма НСП по ставке [12:47:59] 1133 (588) - - счетчики коррекции - не используются [12:47:59]1077 (6) - 129992309684253 - ФПД [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1209 (04B9) [12:47:59]Malloc new data [12:47:59]Processing tag 1041 (0411) [12:47:59]Processing tag 1040 (0410) [12:47:59]Malloc new data [12:47:59]Processing tag 1038 (040E) [12:47:59]Malloc new data [12:47:59]Processing tag 1118 (045E) [12:47:59]Malloc new data [12:47:59]Processing tag 1111 (0457) [12:47:59]Malloc new data [12:47:59]Processing tag 1194 (04AA) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1134 (046E) [12:47:59]Malloc new data [12:47:59]Processing tag 1129 (0469) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1135 (046F) [12:47:59]Malloc new data [12:47:59]Processing tag 1201 (04B1) [12:47:59]Malloc new data [12:47:59]Processing tag 1136 (0470) [12:47:59]Malloc new data [12:47:59]Processing tag 1138 (0472) [12:47:59]Malloc new data [12:47:59]Processing tag 1024 (0400) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1006 (03EE) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1010 (03F2) [12:47:59]Malloc new data [12:47:59]Processing tag 1011 (03F3) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1006 (03EE) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1010 (03F2) [12:47:59]Malloc new data [12:47:59]Processing tag 1011 (03F3) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]SetTLVBufToDocument err=0 [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1130 (046A) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1135 (046F) [12:47:59]Malloc new data [12:47:59]Processing tag 1201 (04B1) [12:47:59]Malloc new data [12:47:59]Processing tag 1136 (0470) [12:47:59]Malloc new data [12:47:59]Processing tag 1138 (0472) [12:47:59]Malloc new data [12:47:59]Processing tag 1024 (0400) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1006 (03EE) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1010 (03F2) [12:47:59]Malloc new data [12:47:59]Processing tag 1011 (03F3) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1006 (03EE) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1010 (03F2) [12:47:59]Malloc new data [12:47:59]Processing tag 1011 (03F3) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]SetTLVBufToDocument err=0 [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1131 (046B) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1135 (046F) [12:47:59]Malloc new data [12:47:59]Processing tag 1201 (04B1) [12:47:59]Malloc new data [12:47:59]Processing tag 1136 (0470) [12:47:59]Malloc new data [12:47:59]Processing tag 1138 (0472) [12:47:59]Malloc new data [12:47:59]Processing tag 1024 (0400) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1006 (03EE) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1010 (03F2) [12:47:59]Malloc new data [12:47:59]Processing tag 1011 (03F3) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1006 (03EE) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1010 (03F2) [12:47:59]Malloc new data [12:47:59]Processing tag 1011 (03F3) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1007 (03EF) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1014 (03F6) [12:47:59]Malloc new data [12:47:59]Processing tag 1015 (03F7) [12:47:59]Malloc new data [12:47:59]SetTLVBufToDocument err=0 [12:47:59]SetTLVBufToDocument err=0 [12:47:59]SetTLVBufToDocument err=0 [12:47:59]Processing tag 1132 (046C) [12:47:59]Load OK [12:47:59]SetTLVBufToDocument [12:47:59]Processing tag 1135 (046F) [12:47:59]Malloc new data [12:47:59]Processing tag 1201 (04B1) [12:47:59]Malloc new data [12:47:59]Processing tag 1136 (0470) [12:47:59]Malloc new data [12:47:59]Processing tag 1138 (0472) [12:48:00]Malloc new data [12:48:00]Processing tag 1024 (0400) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1006 (03EE) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1010 (03F2) [12:48:00]Malloc new data [12:48:00]Processing tag 1011 (03F3) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1006 (03EE) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1010 (03F2) [12:48:00]Malloc new data [12:48:00]Processing tag 1011 (03F3) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1007 (03EF) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1014 (03F6) [12:48:00]Malloc new data [12:48:00]Processing tag 1015 (03F7) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1007 (03EF) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1014 (03F6) [12:48:00]OFD Sender: No OFD packet to send [12:48:00]Malloc new data [12:48:00]Processing tag 1015 (03F7) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1007 (03EF) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1014 (03F6) [12:48:00]Malloc new data [12:48:00]Processing tag 1015 (03F7) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1007 (03EF) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1014 (03F6) [12:48:00]Malloc new data [12:48:00]Processing tag 1015 (03F7) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1007 (03EF) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1014 (03F6) [12:48:00]Malloc new data [12:48:00]Processing tag 1015 (03F7) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1007 (03EF) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1014 (03F6) [12:48:00]Malloc new data [12:48:00]Processing tag 1015 (03F7) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1007 (03EF) [12:48:00]Load OK [12:48:00]SetTLVBufToDocument [12:48:00]Processing tag 1014 (03F6) [12:48:00]Malloc new data [12:48:00]Processing tag 1015 (03F7) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]SetTLVBufToDocument err=0 [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1133 (046D) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Processing tag 1077 (0435) [12:48:00]Malloc new data [12:48:00]SetTLVBufToDocument err=0 [12:48:00]Malloc new data [12:48:00]SAM_PROTO_GetFMData [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 13 03 00 [12:48:00]Write to MH i2c: E2 08 00 50 01 80 13 03 00 00 00 00 00 D0 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:48:00]Read from MH i2c: E2 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 FD 00 [12:48:00]MH_I2C_Read... [12:48:00]Read from MH i2c: E2 FD 00 50 01 00 C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 BF [12:48:00]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 63 E8 00 00 69 04 A0 00 6F 04 04 00 D2 E7 00 00 B1 04 04 00 4C 61 08 6E 70 04 04 00 78 3F DF 59 72 04 04 00 D4 21 29 14 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 53 B8 AF 0B 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 5D 37 F9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 91 00 00 00 B1 04 03 00 74 FF D6 70 04 03 00 34 D9 D3 72 04 03 00 40 26 03 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 3A D5 16 EF 03 09 00 F6 03 90 00 [12:48:00]wFMCommunicate OK [12:48:00]wFMCommunicate request_size=4 [12:48:00]MH_SAM_APDU [12:48:00]CAPDU: 80 17 00 00 [12:48:00]Write to MH i2c: E2 08 00 51 01 80 17 00 00 00 00 00 00 D2 [12:48:00]Write i2c OK [12:48:00]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 FD 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 FD 00 51 01 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F0 [12:48:01]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 09 E7 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:01]wFMCommunicate OK [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 17 00 00 [12:48:01]Write to MH i2c: E2 08 00 52 01 80 17 00 00 00 00 00 00 D3 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 FD 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 FD 00 52 01 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 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 90 00 81 [12:48:01]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 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 90 00 [12:48:01]wFMCommunicate OK [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 17 00 00 [12:48:01]Write to MH i2c: E2 08 00 53 01 80 17 00 00 00 00 00 00 D4 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 FD 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 FD 00 53 01 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [12:48:02]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:48:02]wFMCommunicate OK [12:48:02]wFMCommunicate request_size=4 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 17 00 00 [12:48:02]Write to MH i2c: E2 08 00 54 01 80 17 00 00 00 00 00 00 D5 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [12:48:02]Read from MH i2c: E2 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 DF 00 [12:48:02]MH_I2C_Read... [12:48:02]Read from MH i2c: E2 DF 00 54 01 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 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 B5 [12:48:02]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:48:02]wFMCommunicate OK [12:48:02]SAM_PROTO_GetFMData done [12:48:02]Malloc new data [12:48:02]Malloc new data [12:48:02]Malloc new data [12:48:02]Malloc new data [12:48:02]KKMLoadAndSignCloseShiftData err=0 [12:48:02]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Сабыржан уулу Б. 27.10.2024 12:47 Смена: 532 РНМ: 0000000000091622 ЗНМ: 0300000084 СНО: Общий режим Чеков за смену: 88 ФД за смену: 90 Всего чеков: 88 ИТОГИ ПРИХОД Чеков: 88 Общий итог: 32916.33 Итого наличными: 18434.00 Итого безнал.: 14482.33 НДС 0% : 0.00 НДС 12% : 3495.76 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 291.25 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 18434.00 НС Приход: 18460429.56 НС Возвр.Прихода: 140901.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 60557 ФМ: 0000000000874674 ФПД: 129992309684253 [12:48:02]StoreToDocumentArchive [12:48:02]shift 532 fd 60557 [12:48:02]save to /storage/0532/doc_00060557 [12:48:02]save last doc name /storage/0532/doc_00060557 to /storage/kkm_last_doc_name [12:48:02]save OK [12:48:02]Clear old archive folders... [12:48:02]Remove dir /storage/0522 [12:48:02]opendir ok [12:48:02]file . [12:48:02]file .. [12:48:02]file doc_1730033226 [12:48:02]remove file /storage/0522/doc_1730033226 [12:48:02]remove dir /storage/0522 [12:48:02]NVStorageSaveData kkm_registers [12:48:02]File name is /storage/kkm_registers [12:48:02]Write 24 bytes [12:48:02]NVStorageSaveData done [12:48:02]NVStorageSaveData kkm_registers [12:48:02]File name is /storage/kkm_registers [12:48:02]Write 24 bytes [12:48:02]NVStorageSaveData done [12:48:02]ProcessDocumentItem done err = 0, tmpTLVsize=1388 [12:48:02]tlvbuf is 01159740 [12:48:02]SAM_PROTO_ClearQueue [12:48:02]wFMCommunicate request_size=4 [12:48:02]MH_SAM_APDU [12:48:02]CAPDU: 80 09 00 00 [12:48:02]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [12:48:02]Write i2c OK [12:48:02]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [12:48:03]RAPDU: 90 00 [12:48:03]wFMCommunicate OK [12:48:03]SAM_PROTO_ClearQueue done [12:48:03]KKMCreateOFDPacket [12:48:03]OFDProtocolAddRootSTLVToBuf [12:48:03]FM_MakeSignedData [12:48:03]FM_MakeSignedData [12:48:03]SAM_PROTO_SignData [12:48:03]wFMCommunicate request_size=4 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 0D 01 02 [12:48:03]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [12:48:03]RAPDU: 90 00 [12:48:03]wFMCommunicate OK [12:48:03]wFMCommunicate request_size=255 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 0D 02 02 FA 05 00 6C 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 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 7C 36 1E 67 0E 04 04 00 14 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 AA 04 D5 04 6E 04 04 00 58 00 00 00 69 04 A2 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 55 05 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 [12:48:03]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 05 00 6C 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 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 7C 36 1E 67 0E 04 04 00 14 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 AA 04 D5 04 6E 04 04 00 58 00 00 00 69 04 A2 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 55 05 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 00 00 B1 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [12:48:03]RAPDU: 90 00 [12:48:03]wFMCommunicate OK [12:48:03]wFMCommunicate request_size=255 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 0D 02 02 FA 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C5 71 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 [12:48:03]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C5 71 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 00 82 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=255 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 02 02 FA 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 [12:48:04]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 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 00 00 8E [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=255 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 02 02 FA 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 [12:48:04]Write to MH i2c: E2 02 01 5A 01 80 0D 02 02 FA 00 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 00 00 98 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]OFD Sender: No OFD packet to send [12:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 03 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [12:48:05]RAPDU: 90 00 [12:48:05]wFMCommunicate OK [12:48:05]wFMCommunicate request_size=255 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:48:05]Write to MH i2c: E2 02 01 5B 01 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 00 00 77 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 03 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 03 00 5B 01 00 90 00 D0 [12:48:05]RAPDU: 90 00 [12:48:05]wFMCommunicate OK [12:48:05]wFMCommunicate request_size=147 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 0D 02 02 8E EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 76 3A 31 71 38 1D [12:48:06]Write to MH i2c: E2 96 00 5C 01 80 0D 02 02 8E 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 76 3A 31 71 38 1D 00 00 38 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 03 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 03 00 5C 01 00 90 00 D1 [12:48:06]RAPDU: 90 00 [12:48:06]wFMCommunicate OK [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 0D 03 02 [12:48:06]Write to MH i2c: E2 08 00 5D 01 80 0D 03 02 00 00 00 00 D9 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0B 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0B 00 5D 01 00 61 BD 71 E1 05 45 4A 57 90 00 35 [12:48:06]RAPDU: 61 BD 71 E1 05 45 4A 57 90 00 [12:48:06]wFMCommunicate OK [12:48:06]SAM_PROTO_SignData done [12:48:06]FM_MakeSignedData done [12:48:06]CreateOFDProtocolMessage [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 11 00 00 [12:48:06]Write to MH i2c: E2 08 00 5E 01 80 11 00 00 00 00 00 00 D9 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 17 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 17 00 5E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 30 [12:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 90 00 [12:48:06]wFMCommunicate OK [12:48:06]CreateOFDProtocolMessage done [12:48:06]OFDSenderStorePacket 60557 [12:48:06]StoreOFDPacket docnum=60557 [12:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 80 05 00 00 14 4F 78 05 73 AC 5A 05 01 00 05 00 6C 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 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 7C 36 1E 67 0E 04 04 00 14 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 AA 04 D5 04 6E 04 04 00 58 00 00 00 69 04 A2 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 55 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C5 71 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 8D EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 76 3A 31 71 38 1D 61 BD 71 E1 05 45 4A 57 [12:48:06]CheckFolder [12:48:06]dirname=/storage/ofd_packets [12:48:06]CheckFolder done [12:48:06]ProducePacketName [12:48:06]name=ofd_packets/00060557 [12:48:06]NVStorageSaveData ofd_packets/00060557 [12:48:06]File name is /storage/ofd_packets/00060557 [12:48:06]Write 1438 bytes [12:48:06]NVStorageSaveData done [12:48:06]OFDSenderStorePacket done [12:48:06]KKMCreateOFDPacket done [12:48:06]NVStorageSaveData kkm_last_timestamp [12:48:06]File name is /storage/kkm_last_timestamp [12:48:06]Write 4 bytes [12:48:06]NVStorageSaveData done [12:48:06]ExternCall_PrintAddStr [12:48:06]wPrintStart [12:48:06]Write to MH i2c: 01 00 00 5F 01 60 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: 01 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: 01 07 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: 01 07 00 5F 01 00 00 00 00 00 FF 0F 75 [12:48:06]RasterBufferAndPrint [12:48:06]line Отчет о закрытии смены [12:48:06]line ФФД: 1.0 [12:48:06]line ИНН: 02508201610067 [12:48:06]line Кассир: Сабыржан уулу Б. [12:48:06]line 27.10.2024 12:47 [12:48:06]line Смена: 532 [12:48:06]line РНМ: 0000000000091622 [12:48:06]line ЗНМ: 0300000084 [12:48:06]line СНО: Общий режим [12:48:06]line Чеков за смену: 88 [12:48:06]line ФД за смену: 90 [12:48:06]line Всего чеков: 88 [12:48:06]line ИТОГИ ПРИХОД [12:48:06]line Чеков: 88 [12:48:06]line Общий итог: 32916.33 [12:48:06]line Итого наличными: 18434.00 [12:48:06]line Итого безнал.: 14482.33 [12:48:06]line НДС 0% : 0.00 [12:48:06]line НДС 12% : 3495.76 [12:48:06]line НСП 0% : 0.00 [12:48:06]line НСП 1,50% : 0.00 [12:48:06]line НСП 0,50% : 0.00 [12:48:06]line НСП 5% : 0.00 [12:48:06]line НСП 3% : 0.00 [12:48:06]line НСП 2% : 0.00 [12:48:06]line НСП 1% : 291.25 [12:48:06]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:48:06]line Чеков: 0 [12:48:06]line Общий итог: 0.00 [12:48:06]line Итого наличными: 0.00 [12:48:06]line Итого безнал.: 0.00 [12:48:06]line НДС 0% : 0.00 [12:48:06]line НДС 12% : 0.00 [12:48:06]line НСП 0% : 0.00 [12:48:06]line НСП 1,50% : 0.00 [12:48:06]line НСП 0,50% : 0.00 [12:48:06]line НСП 5% : 0.00 [12:48:06]line НСП 3% : 0.00 [12:48:06]line НСП 2% : 0.00 [12:48:06]line НСП 1% : 0.00 [12:48:06]line ИТОГИ РАСХОД [12:48:06]line Чеков: 0 [12:48:06]line Общий итог: 0.00 [12:48:06]line Итого наличными: 0.00 [12:48:06]line Итого безнал.: 0.00 [12:48:06]line НДС 0% : 0.00 [12:48:06]line НДС 12% : 0.00 [12:48:06]line НСП 0% : 0.00 [12:48:06]line НСП 1,50% : 0.00 [12:48:06]line НСП 0,50% : 0.00 [12:48:06]line НСП 5% : 0.00 [12:48:06]line НСП 3% : 0.00 [12:48:06]line НСП 2% : 0.00 [12:48:06]line НСП 1% : 0.00 [12:48:06]line ИТОГИ ВОЗВРАТ РАСХОДА [12:48:06]line Чеков: 0 [12:48:06]line Общий итог: 0.00 [12:48:06]line Итого наличными: 0.00 [12:48:06]line Итого безнал.: 0.00 [12:48:06]line НДС 0% : 0.00 [12:48:06]line НДС 12% : 0.00 [12:48:06]line НСП 0% : 0.00 [12:48:06]line НСП 1,50% : 0.00 [12:48:06]line НСП 0,50% : 0.00 [12:48:06]line НСП 5% : 0.00 [12:48:06]line НСП 3% : 0.00 [12:48:06]line НСП 2% : 0.00 [12:48:06]line НСП 1% : 0.00 [12:48:06]line Сумма внесений: 0.00 [12:48:06]line Сумма выплат: 0.00 [12:48:06]line Нал. в кассе: 18434.00 [12:48:06]line НС Приход: 18460429.56 [12:48:06]line НС Возвр.Прихода: 140901.00 [12:48:06]line НС Расход: 0.00 [12:48:06]line НС Возвр.Расхода: 0.00 [12:48:06]line ФД: 60557 [12:48:06]line ФМ: 0000000000874674 [12:48:06]line ФПД: 129992309684253 [12:48:06]written 0, free lines is 4095 [12:48:06]OFD Sender: Processing packet 60557 [packets to send 30, broken 29] [12:48:06]ProducePacketName [12:48:06]name=ofd_packets/00060557 [12:48:06]OFD Sender: To server: pG, [12:48:06]CommunicateWithHost lk.salyk.kg:30040 [12:48:06]ConnectInit lk.salyk.kg [12:48:07]Connected sock=6 [12:48: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 36 37 34 80 05 00 00 14 4F 78 05 73 AC 5A 05 01 00 05 00 6C 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 1E 00 D0 A1 D0 B0 D0 B1 D1 8B D1 80 D0 B6 D0 B0 D0 BD 20 D1 83 D1 83 D0 BB D1 83 20 D0 91 2E 20 F4 03 04 00 7C 36 1E 67 0E 04 04 00 14 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 AA 04 D5 04 6E 04 04 00 58 00 00 00 69 04 A2 00 6F 04 04 00 58 00 00 00 B1 04 03 00 F1 39 32 70 04 03 00 C8 20 1C 72 04 03 00 29 19 16 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 88 55 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C5 71 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 Write to MH i2c: 03 01 00 00 00 00 EF AF 03 01 09 B0 00 [12:48:07]F6 03 01 00 02 F7 03 00 00 EF 03 09 00 Write i2c OK [12:48:07]F6 MH_I2C_Read... [12:48:07]03 Read from MH i2c: 01 01 00 [12:48:07]03 MH_I2C_Read... [12:48:07]F7 03 00 00 EF Read from MH i2c: 03 01 09 07 00 00 F6 [12:48:07]03 MH_I2C_Read... [12:48:07]01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 Read from MH i2c: 00 01 F6 07 03 00 01 AF 00 01 06 00 F7 00 03 00 00 00 36 0B F8 [12:48:07]RasterBufferAndPrint [12:48:07]line [12:48:07]line [12:48:07]line [12:48:07]line [12:48:07]line [12:48:07]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 written 0, free lines is 2983 [12:48:08]00 EF 03 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 MH_Cut [12:48:08]04 Write to MH i2c: 04 00 D1 00 01 00 00 00 B6 00 01 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 01 03 89 09 [12:48:08]00 F2 Write i2c OK [12:48:08]03 MH_I2C_Read... [12:48:08]01 00 00 F3 03 00 00 EE Read from MH i2c: 03 D1 09 [12:48:08]00 MH_I2C_Read... [12:48:08]F2 03 01 00 01 F3 03 Read from MH i2c: 00 D1 00 01 EF 00 03 [12:48:08]09 MH_I2C_Read... [12:48:08]00 F6 03 01 00 00 F7 03 Read from MH i2c: 00 D1 00 01 EF 00 03 B6 09 01 00 00 F6 88 03 [12:48:08]01 Write to MH i2c: 00 01 01 00 F7 00 03 B7 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 01 00 B8 F6 [12:48:08]03 01 00 03 F7 03 00 00 EF 03 09 00 Write i2c OK [12:48:08]F6 MH_I2C_Read... [12:48:08]03 01 00 04 F7 03 00 00 EF 03 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 8D EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 35 04 06 00 76 3A 31 71 38 1D 61 BD 71 E1 05 45 4A 57 [12:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 34 4F 00 00 00 0F 75 47 00 78 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 36 37 34 10 04 04 00 8D EC 00 00 F4 03 04 00 6E DC 1D 67 B6 04 01 00 00 A8 F4 6A 74 E6 49 50 12 [12:48:08]CommunicateWithHost err = 0 [12:48:08]CheckOFDResponse [12:48:08]1017 (14) - 77093643461234 [12:48:08]1041 (16) - 0000000000874674 [12:48:08]1040 (4) - 60557 [12:48:08]1012 (4) - 27.10.2024 06:23 [12:48:08]1206 (1) - 0 [12:48:08]OFD Sender: Remove packet 60557 [12:48:08]ProducePacketName [12:48:08]name=ofd_packets/00060557 [12:48:08]NVStorageDeleteData [12:48:08]*** Cut start [12:48:08]*** Partial cut [12:48:08]*** CUTSNS_PIN = 1 [12:48:08]*** CUTSNS_PIN = 0 [12:48:09]OFD Sender: No OFD packet to send [12:48:09]*** Brake cut motor [12:48:09]Read from MH i2c: 01 [12:48:09]MH_I2C_Read... [12:48:09]*** Stop cut motor [12:48:09]*** Cut end [12:48:09]Read from MH i2c: 01 07 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 B7 01 00 00 00 00 00 FF 0F CD [12:48:09]process_action close_shift done [12:48:09]requested_data is exist [12:48:09]produce_requested_data [12:48:09]requested_item fd.num is exist - process it [12:48:09]SAM_PROTO_GetFieldsCounters [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 13 00 00 [12:48:09]Write to MH i2c: E2 08 00 B8 01 80 13 00 00 00 00 00 00 35 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 62 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 62 00 B8 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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [12:48: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 36 37 34 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 32 32 10 04 04 00 8D EC 00 00 0E 04 04 00 14 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:09]wFMCommunicate OK [12:48:09]SAM_PROTO_GetFieldsCounters done [12:48:09]requested_item shift.num is exist - process it [12:48:09]requested_item shift.opened is exist - process it [12:48:09]req_shift_opened [12:48:09]FM_GetShiftState [12:48:09]SAM_PROTO_GetShiftState [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 13 01 00 [12:48:09]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:09]Read from MH i2c: E2 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0E 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: E2 0E 00 B9 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 42 [12:48:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [12:48:09]wFMCommunicate OK [12:48:09]SAM_PROTO_GetShiftState done [12:48:09]FM_GetShiftState done [12:48:09]req_shift_opened done [12:48:09]requested_item shift.open_date is exist - process it [12:48:09]req_shift_open_date [12:48:09]FM_GetShiftState [12:48:09]SAM_PROTO_GetShiftState [12:48:09]wFMCommunicate request_size=4 [12:48:09]MH_SAM_APDU [12:48:09]CAPDU: 80 13 01 00 [12:48:10]Write to MH i2c: E2 08 00 BA 01 80 13 01 00 00 00 00 00 38 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:10]Read from MH i2c: E2 0E 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 0E 00 BA 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 43 [12:48:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [12:48:10]wFMCommunicate OK [12:48:10]SAM_PROTO_GetShiftState done [12:48:10]FM_GetShiftState done [12:48:10]req_shift_open_date done [12:48:10]produce_requested_data done [12:48:10]produce_requested_data return {"fd.num":60557,"shift.num":532,"shift.opened":0,"shift.open_date":0} [12:48:10]process_action_free close_shift [12:48:10]json_value_free [12:48:10]json_value_free done [12:48:10]process_json_proto returns [12:48:10]Send response to host [12:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":60557,"shift.num":532,"shift.opened":0,"shift.open_date":0}}} [12:48:10]free response buf [12:48:10]execute_script done [12:48:10]execute_script returns [12:48:10]free content buf [12:48:10]Sock 9.Close socket [12:48:10]Sock 9.Thread stoped [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send